Several ways to accomplish this, but one way is to put a default.asp in the 
root folder that contains

---------snip----------
<%
If Request.ServerVariables("HTTP_HOST") = "http://hostname.mydomain.com"; Then
                Response.Redirect 
("http://hostname.mydomain.com/thissite/page88";)
End If
If Request.ServerVariables("HTTP_HOST") = "http://hostname2.mydomain.com"; Then
                Response.Redirect 
("http://hostname.mydomain.com/othersite/page7";)
End If
%>
---------snip----------

You'll need to enable asp in IIS if its not already. I'm sure it's also 
possible to do in asp.net if that's enabled. You'll also want to make sure that 
default.asp is the first document returned by the website.

From: David Lum [mailto:david....@nwea.org]
Sent: Tuesday, September 11, 2012 2:57 PM
To: NT System Admin Issues
Subject: IIS tricks

Is it possible for a single IIS7 server to host two web sites and have the 
following:

http://hostname.mydomain.com auto-forward to 
http://hostname.mydomain.com/thissite/page88
-and-
http://hostname2.mydomain.com auto-forward to 
http://hostname.mydomain.com/othersite/page7

The first one is easy enough, I am not sure I can ALSO do the 2nd one on the 
same server.
David Lum
Systems Engineer // NWEATM
Office 503.548.5229 // Cell (voice/text) 503.267.9764




~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

Reply via email to