Solved

IIS 7 Redirects

Posted on 2013-05-15
1
298 Views
Last Modified: 2013-05-23
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:
 <%
Response.Redirect "http://site.domain.com/SecondaryLogonPage.asp"
%>

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)  

Suggestions?
0
Comment
Question by:JamesonJendreas
1 Comment
 
LVL 30

Accepted Solution

by:
Brad Howe earned 500 total points
ID: 39171219
First thing with a 404 is does the actual site load from another host. Put up a dummy page without your redirect and try.

what is the actual IP resolving to?

CMD> nslookup site2.domain.com

Additionally, I understand the process as such;

1. You browse to site2.domain.com/default.asp
2. That does a meta-redirect to http://site.domain.com
3. you receive 404 from any pc but the server.

If you don't mind the url changing why not just remove the static page as such and let IIS hand the default page for that site?

 <%
Response.Redirect "http://site.domain.com"
%>

Cheers,
Hades666
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question