404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
I have two Exchange 2013 servers, one is playing as a Client Access Server (CAS) where the other as a Database Availability Group (DAG). I have been configuring multiple OWA Virtual Directories using PowerShell, adding and removing virtual sites when suddenly above error occurred.
Meaning of the error is actually very clear, something is missing, something got deleted. I could see OWA virtual directory is there but somehow I couldn’t open OWA interface from anywhere. What is going on!? Maybe .NET doesn’t parse the code? Application pool doesn’t have sufficient permissions? Tried to reset virtual directory, didn’t solve the problem nor did reinstall of the Exchange CAS server. Hm... Let’s take a step back, maybe there’s no issues on the CAS server.
It wasn't! After a deep digging with the Firebug I discovered DAG server also contains virtual directories. When I opened the IIS console I could see OWA virtual directory is missing under the “Exchange Back End” site.
New-OwaVirtualDirectory -WebSiteName "Exchange Back End" -Server <DAG>
This PowerShell script solved the problem.