?
Solved

IIS 7 Redirects

Posted on 2013-05-15
1
Medium Priority
?
306 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 30

Accepted Solution

by:
Brad Howe earned 2000 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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

A safe way to clean winsxs folder from your windows server 2008 R2 editions
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
Suggested Courses

777 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