Click here to Skip to main content
Licence 
First Posted 31 Oct 2000
Views 125,745
Bookmarked 41 times

Multiple domains on a single IP

By | 3 Apr 2001 | Article
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

About the Author

Alex Marbus



Netherlands Netherlands

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generalip address tracking PinmemberShyam P.S. Shekhawat17:25 14 Mar '01  
Generalloop PinmemberAnonymous8:06 12 Mar '01  
Generalhrmmm PinmemberAnonymous10:22 3 Nov '00  
GeneralRe: hrmmm PinmemberAlexMarbus12:49 3 Nov '00  
GeneralRe: hrmmm PinmemberDavid Cunningham5:02 4 Nov '00  
GeneralRe: hrmmm PinmemberAlexMarbus5:08 4 Nov '00  
GeneralRe: hrmmm PinmemberDavid Cunningham6:26 4 Nov '00  
GeneralRe: hrmmm PinmemberAlexMarbus12:16 4 Nov '00  
GeneralRe: hrmmm PinmemberAnonymous9:33 8 Feb '01  
GeneralRe: hrmmm PinmemberBarfly20:10 4 Mar '01  
GeneralRe: hrmmm PinmemberAlexMarbus5:51 5 Mar '01  
GeneralThis feature is built into IIS already PinsussDavid Cunningham6:40 2 Nov '00  
GeneralWarning if you plan to use ssl PinmemberAnonymous22:48 6 Nov '00  
GeneralRe: Warning if you plan to use ssl PinmemberDavid Cunningham2:33 7 Nov '00  
GeneralRe: Warning if you plan to use ssl PinmemberHadz6:26 4 Mar '01  
GeneralRe: Warning if you plan to use ssl Pinmemberthany.org23:29 7 Feb '08  
Why would you use multiple server certificates on a single machine? I can imagine why this would be a problem, but a server certificate, as the name implies, is more or less bound to a machine. A certificate is owned by a company, just like the server.
 
I guess what I'm trying to say, is that a server certificate shouldn't be a certificate for a website, but for a server. The certificate that a visitor recieves, validates the identity of the server, not the identity of the website. Technically speaking, that is.
 
So in practise, a company that owns a dedicated server for their website(s) doesn't have this problem, since the visitors receive a certificate belonging to company "Example" at website www.example.com. However, virtually hosted websites would serve a certificate belonging to "Provider" at website www.virtuallyhostedexample.com. The visitor may be confused with this, but it is in fact correct.
 
I think that any self-respecting website that transmits data that is so sensetive or personal that it needs certificates-based encryption, is likely to be owned by a company that can easily afford an extra IP-address or a dedicated hosting solution.
 
--
Thany

GeneralThis feature is also in Apache PinmemberTony Truong22:53 6 Jan '01  
GeneralRe: This feature is also in Apache PinmemberAnonymous9:17 14 Jun '01  

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.

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