Re: name based hosting [message #25051 is a reply to message #25019] |
Thu, 13 December 2007 17:04   |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
One way is to use an http proxy, such as pound, lighttpd, apache, nginx.
route all your port 80 traffic to VE 1, which runs one of the above. based on the domain, it will proxy the request to VE2, 3, etc depending on which domain is being requested.
Doing the IP translation in the kernel is the best, as VE2,3 see the actual request packets fromt he client, but the kernel would need to look at the packet data, such as using iptables layer 7 inspection module.
To my knowledge, the iptables modules in the general redhat distros cannot do this, so an http proxy would be my best suggestion.
Rick
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
|
|
|