IIS 7 Redirects
Posted on 2013-05-15
I feel like I am close here - trying to setup a secondary DNS record for a website that will go to a secondary log on page hosted on the same server has primary. So, I have my 2 DNSrecords site.domain.com and site2.domain.com
I've created a secondary virtual site in IIS7, and created a new virtual directory. I added the binding for site2.domain.com to the secodnary site in IIS.
Next I created a new document in the secondary sites Virtual Directory a "default.asp" with the following:
Now, if I browse site2.domain.com from the server itself, it works perfectly (redirects to site.domain.com/secondarylogon.asp, i do not mind he URL changing).
But if I do it fro many other PC, I get a 404 Not Found error. One thing i notice is it's redirecting to site.domain.com/mainLogon.asp (which is defined in the primary sites virtual directories default.html)