[mod_python] Connection Handler in a virtual host

Miikka Miettinen mmmietti at cs.Helsinki.FI
Mon Mar 1 19:15:47 EST 2004


> You need only one NameVirtualHost because you just want to tell Apache
> what IPs serve virtual hosts. When your hosts have IN A for the same IP 
> just put it in NameVirtualHost, and then define those hosts in VirtualHost
> directive.

Ok, thanks for the tip.


> NameVirtualHost 1.2.3.4
> 
> <VirtualHost xyz.org:80>
>    ...
> </VirtualHost>
> 
> <VirtualHost abc.com:80>
>   ...
> </VirtualHost>
> 
> <VirtualHost 1.2.3.4:80>
>    # this will be applied when user views http://1.2.3.4 instead
>    # of http://abc.com or http://xyz.org
> </VirtualHost>

I did this, but the connection handler is still not being called. :(


Miikka



More information about the Mod_python mailing list