|
Michael C. Neel
neel at mediapulse.com
Mon Mar 1 12:45:46 EST 2004
I would setup the virt host's like such:
NameVirtualHost 1.2.3.4
<VirtualHost 1.2.3.4:80>
ServerName site1.xyz.org
DocumentRoot /var/www/site1/htdocs
</VirtualHost>
<VirtualHost 1.2.3.4:80>
ServerName site2.xyz.org
DocumentRoot /var/www/site2/htdocs
PythonPath "sys.path+['/var/www/test']"
PythonConnectionHandler conntest
</VirtualHost>
Things may have changed with recent options of Apache, but in the past
the first declared VirtualHost would be called if no ServerName or
ServerAlias directives matched. Also, to help test you can setup
different log files in each VirtualHost, and verify that way which host
if being called on the request.
Mike
> > 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. :(
>
|