Click here to Skip to main content
Click here to Skip to main content

Multiple domains on a single IP

, 3 Apr 2001
Rate this:
Please Sign up or sign in to vote.
How to set multiple domains one a single IP-address with ASP.
<!-- Add the rest of your HTML here -->

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. Smile | :)

 <%
 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. Wink | ;)

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

Share

About the Author

Alex Marbus

Netherlands Netherlands
No Biography provided

Comments and Discussions

 
Generalip address tracking PinmemberShyam P.S. Shekhawat14-Mar-01 17:25 
Generalloop PinmemberAnonymous12-Mar-01 8:06 
Generalhrmmm PinmemberAnonymous3-Nov-00 10:22 
GeneralRe: hrmmm PinmemberAlexMarbus3-Nov-00 12:49 
GeneralRe: hrmmm PinmemberDavid Cunningham4-Nov-00 5:02 
GeneralRe: hrmmm PinmemberAlexMarbus4-Nov-00 5:08 
GeneralRe: hrmmm PinmemberDavid Cunningham4-Nov-00 6:26 
GeneralRe: hrmmm PinmemberAlexMarbus4-Nov-00 12:16 
GeneralRe: hrmmm PinmemberAnonymous8-Feb-01 9:33 
GeneralRe: hrmmm PinmemberBarfly4-Mar-01 20:10 
GeneralRe: hrmmm PinmemberAlexMarbus5-Mar-01 5:51 
GeneralThis feature is built into IIS already PinsussDavid Cunningham2-Nov-00 6:40 
GeneralWarning if you plan to use ssl PinmemberAnonymous6-Nov-00 22:48 
GeneralRe: Warning if you plan to use ssl PinmemberDavid Cunningham7-Nov-00 2:33 
GeneralRe: Warning if you plan to use ssl PinmemberHadz4-Mar-01 6:26 
GeneralRe: Warning if you plan to use ssl Pinmemberthany.org7-Feb-08 23:29 
GeneralThis feature is also in Apache PinmemberTony Truong6-Jan-01 22:53 
GeneralRe: This feature is also in Apache PinmemberAnonymous14-Jun-01 9:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 4 Apr 2001
Article Copyright 2000 by Alex Marbus
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid