Personal computing discussed

Moderators: renee, SecretSquirrel, just brew it!

 
mac_h8r1
Minister of Gerbil Affairs
Topic Author
Posts: 2974
Joined: Tue Sep 24, 2002 6:57 pm
Location: Somewhere in the Cloud
Contact:

ASP and IIS

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
 
Coldfirex
Graphmaster Gerbil
Posts: 1122
Joined: Wed Dec 26, 2001 7:00 pm
Location: College Station, TX
Contact:

Tue Jan 21, 2003 5:09 pm

bumped in search of an answer
Your bargaining posture is highly dubious.
 
 
mac_h8r1
Minister of Gerbil Affairs
Topic Author
Posts: 2974
Joined: Tue Sep 24, 2002 6:57 pm
Location: Somewhere in the Cloud
Contact:

thanks

Wed Feb 12, 2003 3:21 am

thanks
 
b3n113
Minister of Gerbil Affairs
Posts: 2519
Joined: Sun May 12, 2002 3:00 am

Re: ASP and IIS

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.
 
mac_h8r1
Minister of Gerbil Affairs
Topic Author
Posts: 2974
Joined: Tue Sep 24, 2002 6:57 pm
Location: Somewhere in the Cloud
Contact:

Porblem solved, thx for all your help

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.
 
mattsteg
Gerbil God
Posts: 15782
Joined: Thu Dec 27, 2001 7:00 pm
Location: Applauding the new/old variable width forums
Contact:

Re: Porblem solved, thx for all your help

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.
...

Who is online

Users browsing this forum: No registered users and 1 guest
GZIP: On