ASP and IIS

From Visual Basic to GNU C, this is the place to talk programming.

Moderators: SecretSquirrel, just brew it!

ASP and IIS

Postposted on Mon Jan 20, 2003 3:58 pm

In Short: Im running IIS with 1 WAN IP and want to host multiple webites. I might be able to use ASP to redirect traffic to corresponding directories, but what is the variable for everything after the server name?

More Specifically: Maybe i just havent searched around enough, but neither I, nor any of my friends can figgure out how to host multiple websites using Microsofts IIS on Windows 2000 Advanced Server. I have a router and all traffic on port 80 gets forwarded to my server (among other ports), and so only have 1 IP (for WAN http hosting). By now im sure you see my delima: how can i host multiple websites with only 1 IP? Well, if there's a way to do it through IIS, do tell, but since i dont see how that could be, i've been trying to utalize the vast capabilities of ASP to help in solving my problem. I'm thinking i might have my default.asp page look something like this:
<%
SELECT CASE LCase(Request.ServerVariables("SERVER_NAME"))
CASE "kyle.sytes.net"
response.write ("<body onload=""document.location='/kyle/index.asp'"">")
CASE "volkix.sytes.net"
response.write ("<body onload=""document.location='/volkix/index.htm'"">")
CASE ELSE
response.write ("invalid selection")
END SELECT
%>
Im sure you see one small flaw with this: if someone wanted to access something like http://kyle.sytes.net/default.asp?page=Forum , they would still be redirected to http://kyle.sytes.net . Does anyone know the asp for getting everything after the server name (like /forum/forum.asp where the full address is http://kyle.sytes.net/forum/forum.asp?) or perhaps some other way of going about this?

Thankl you for all your help,
Mac_h8r1
mac_h8r1
Minister of Gerbil Affairs
 
Posts: 2962
Joined: Tue Sep 24, 2002 6:57 pm
Location: Alpha Epsilon Pi for life

Postposted on Tue Jan 21, 2003 5:09 pm

bumped in search of an answer
Your bargaining posture is highly dubious.
Coldfirex
Graphmaster Gerbil
 
Posts: 1109
Joined: Wed Dec 26, 2001 7:00 pm
Location: College Station, TX

Postposted on Thu Jan 23, 2003 9:39 pm

morphine
Gerbil Khan
Silver subscriber
 
 
Posts: 9986
Joined: Fri Dec 27, 2002 8:51 pm
Location: Portugal (that's next to Spain)

thanks

Postposted on Wed Feb 12, 2003 3:21 am

thanks
mac_h8r1
Minister of Gerbil Affairs
 
Posts: 2962
Joined: Tue Sep 24, 2002 6:57 pm
Location: Alpha Epsilon Pi for life

Re: ASP and IIS

Postposted on Wed Feb 12, 2003 6:37 am

mac_h8r1 wrote:In Short: More Specifically: Maybe i just havent searched around enough, but neither I, nor any of my friends can figgure out how to host multiple websites using Microsofts IIS on Windows 2000 Advanced Server.


You own a 4k$ network OS and you don't know how to admin it?

I wish I had that kind of money to burn.

Wait, if you own it - just call Microsoft - they'll be able to help you out.
b3n113
Minister of Gerbil Affairs
 
Posts: 2520
Joined: Sun May 12, 2002 3:00 am
Location: hifi shill

Porblem solved, thx for all your help

Postposted on Fri Feb 21, 2003 2:29 pm

i just used a diffreent port on a different site, using redirects
mac_h8r1.postCount++;
Chaos reigns within. Reflect, repent, and reboot. Order shall return.
Slivovitz owns you.
mac_h8r1
Minister of Gerbil Affairs
 
Posts: 2962
Joined: Tue Sep 24, 2002 6:57 pm
Location: Alpha Epsilon Pi for life

Re: Porblem solved, thx for all your help

Postposted on Fri Feb 21, 2003 3:13 pm

mac_h8r1 wrote:i just used a diffreent port on a different site, using redirects

Why not just make multiple sites in IIS and set the header info. There's no good reason to do it with redirects and all that crap that I can think of, unless I didn't interpret your needs corectly.
...
mattsteg
Gerbil God
 
Posts: 15760
Joined: Thu Dec 27, 2001 7:00 pm
Location: Applauding the new/old variable width forums


Return to Developer's Den

Who is online

Users browsing this forum: No registered users and 1 guest