Solved

IIS 7 Redirects

Posted on 2013-05-15
1
301 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How are passwords stored in Active Directory 25 147
Urgent Help dns, clock issues nightmare 71 82
GPO reset 2 46
NTP time source for DC 3 53
Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …

726 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