Solved

IIS 7 Redirects

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

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