Click here to Skip to main content
15,306,281 members
Articles / Programming Languages / ASP
Posted 31 Oct 2000


44 bookmarked

Multiple domains on a single IP

Rate me:
Please Sign up or sign in to vote.
3.89/5 (8 votes)
3 Apr 2001
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"))
   CASE ""
       response.redirect ""
   CASE ""
       response.redirect ""
       response.redirect ""

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


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


About the Author

Alex Marbus
Netherlands Netherlands
No Biography provided

Comments and Discussions

Generalip address tracking Pin
14-Mar-01 17:25
suss14-Mar-01 17:25 
Generalloop Pin
12-Mar-01 8:06
suss12-Mar-01 8:06 
Generalhrmmm Pin
3-Nov-00 10:22
suss3-Nov-00 10:22 
GeneralRe: hrmmm Pin
AlexMarbus3-Nov-00 12:49
MemberAlexMarbus3-Nov-00 12:49 
GeneralRe: hrmmm Pin
David Cunningham4-Nov-00 5:02
cofounderDavid Cunningham4-Nov-00 5:02 
GeneralRe: hrmmm Pin
AlexMarbus4-Nov-00 5:08
MemberAlexMarbus4-Nov-00 5:08 
GeneralRe: hrmmm Pin
David Cunningham4-Nov-00 6:26
cofounderDavid Cunningham4-Nov-00 6:26 
GeneralRe: hrmmm Pin
AlexMarbus4-Nov-00 12:16
MemberAlexMarbus4-Nov-00 12:16 
GeneralRe: hrmmm Pin
8-Feb-01 9:33
suss8-Feb-01 9:33 
GeneralRe: hrmmm Pin
4-Mar-01 20:10
suss4-Mar-01 20:10 
GeneralRe: hrmmm Pin
AlexMarbus5-Mar-01 5:51
MemberAlexMarbus5-Mar-01 5:51 
GeneralThis feature is built into IIS already Pin
Member 12089652-Nov-00 6:40
MemberMember 12089652-Nov-00 6:40 
GeneralWarning if you plan to use ssl Pin
6-Nov-00 22:48
suss6-Nov-00 22:48 
GeneralRe: Warning if you plan to use ssl Pin
David Cunningham7-Nov-00 2:33
cofounderDavid Cunningham7-Nov-00 2:33 
GeneralRe: Warning if you plan to use ssl Pin
Hadz4-Mar-01 6:26
MemberHadz4-Mar-01 6:26 
GeneralRe: Warning if you plan to use ssl Pin
thany.nl7-Feb-08 23:29
Memberthany.nl7-Feb-08 23:29 
GeneralThis feature is also in Apache Pin
Tony Truong6-Jan-01 22:53
MemberTony Truong6-Jan-01 22:53 
GeneralRe: This feature is also in Apache Pin
14-Jun-01 9:17
suss14-Jun-01 9:17 

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

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