cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Collen <colle...@umn.edu>
Subject Re: Load Balancing web applications with mod_proxy...
Date Thu, 04 Dec 2003 15:58:20 GMT
Vadim Gritsenko wrote:

> 
> 
> Slightly offtopic: do you know how to do virtual hosts on one IP address 
> (which has multiple DNS names)?

Yep, on your httpd.conf, in the "top" level (i.e. server-wide):

NameVirtualHost www.xxx.yyy.zzz

Then, just do:

<virtualhost www.xxx.yyy.zzz>
    servername example1.com
</virtualhost>

<virtualhost www.xxx.yyy.zzz>
    servername anotherexample.com
</virtualhost>

Just keep re-using the same IP address in the virtualhost directives. 
The order matters, and httpd will make the topmost virtualhost the 
"default" one.  If you run into problems seeing the wrong website on a 
vhost, you might want to mess with the order they appear in the conf file.


> 
> Vadim
> 


Tony, maybe he should start apache httpd consulting, too ;)



Mime
View raw message