Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Multiple domains on a single IP

0.00/5 (No votes)
3 Apr 2001 1  
How to set multiple domains one a single IP-address with ASP.

Multiple domains on a single IP address

Sorry for this very short article. I didn't have much time to think of a complete description so I guess the ASP code has to speak for itself. :)

 <%
 host = lcase(request.servervariables("HTTP_HOST"))
 SELECT CASE host
 	CASE "www.chatventure.com"
 		response.redirect "http://212.187.35.210/chatventure/main.htm"
 	CASE "www.cewebserver.com"
 		response.redirect "http://212.187.35.210/cewebserver/main.htm"
 	CASE ELSE
 		response.redirect "http://www.codeproject.com"
 END SELECT
 %>

I use it own my own web server, hosting the domains chatventure.com and cewebserver.com. Feel free to take a visit. ;)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here