Solved

IIS 7 Redirects

Posted on 2013-05-15
1
293 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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
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 to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now