[Zope] Apache ProxyPass and VirtualHostMonster
luke tymowski
luke@seeto.com
Sat, 19 May 2001 16:58:19 -0400
Hello Timothy,
I'm trying to get virtual hosting going with a VirtualHostMonster. I use
Apache and ProxyPass like this for the root of my site (with a SiteRoot):
<VirtualHost 111.222.333.444>
ServerName foo.org
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyPass /misc_ http://localhost:8080/misc_
ProxyPass /p_ http://localhost:8080/p_
</VirtualHost>
I don't use VirtualHostMonster but instead ProxyPass and SiteRoot.
I don't use the root folder of my Zope installation for anything. All
other sites branch off the main.
So:
root -> site1
root -> site2
root -> site3
site1 answers to foo.org
site2 answers to site2.foo.org
site3 answers to site3.foo.org
SiteRoot for site1 is configured as follows:
Base: http://foo.org
Path: /
SiteRoot for site 2 is configured as follows:
Base: http://site2.foo.org
Path: /
SiteRoot for site 3 is configured as follows:
Base: http://site3.foo.org
Path: /
Apache is configured as follows:
<VirtualHost 111.222.333.444>
ServerAdmin webmaster@foo.org
ServerName foo.org
ServerAlias www.foo.org foo.org
ProxyPass / http://mazope:8080/site1/
ProxyPassReverse / http://mazope:8080/site1/
ProxyPass /misc_ http://mazope:8080/site1/misc_
ProxyPass /p_ http://mazope:8080/site1/p_
</VirtualHost>
<VirtualHost 111.222.333.444>
ServerAdmin webmaster@foo.org
ServerName site2.foo.org
ProxyPass / http://mazope:8080/site2/
ProxyPassReverse / http://mazope:8080/site2/
ProxyPass /misc_ http://mazope:8080/site2/misc_
ProxyPass /p_ http://mazope:8080/site2/p_
</VirtualHost>
<VirtualHost 111.222.333.444>
ServerAdmin webmaster@foo.org
ServerName site3.foo.org
ProxyPass / http://mazope:8080/site3/
ProxyPassReverse / http://mazope:8080/site3/
ProxyPass /misc_ http://mazope:8080/site3/misc_
ProxyPass /p_ http://mazope:8080/site3/p_
</VirtualHost>
Luke