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