[Zope] Apache ProxyPass and VirtualHostMonster
Sherwood Robinson
srobinson@fredericksburg.com
Mon, 21 May 2001 09:20:09 -0400
Well I didn't see an answer for this so I will try and help.
First in your root folder place a VirtualHostMonster Object. You can call
it whatever you like
Now to the Proxy Passing!
At 04:58 PM 5/19/2001 -0400, luke tymowski wrote:
>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: /
Get rid of the above SiteRoots. They will mess up the VHM
(VirtualHostMonster) and how it was designed to work
>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>
Change to target this in your second setting of each proxypass modifying
the folders to target properly excluding your misc_ and p_ folders
http://mazope:8080/VirtualHostBase/http/www.foo.com:8080/foo/VirtualHostRoot
<VirtualHost 111.222.333.444>
ServerAdmin webmaster@foo.org
ServerName foo.org
ServerAlias www.foo.org foo.org
ProxyPass /
http://mazope:8080/VirtualHostBase/http/www.foo.com:8080/site1/VirtualHostRoot
ProxyPassReverse /
http://mazope:8080/VirtualHostBase/http/www.foo.com:8080/site1/VirtualHostRoot
ProxyPass /misc_ http://mazope:8080/misc_
ProxyPass /p_ http://mazope:8080/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 site2.foo.org
ProxyPass /
http://mazope:8080/VirtualHostBase/http/site2.foo.com:8080/site2/VirtualHostRoot
ProxyPassReverse /
http://mazope:8080/VirtualHostBase/http/site2.foo.com:8080/site2/VirtualHostRoot
ProxyPass /misc_ http://mazope:8080/misc_
ProxyPass /p_ http://mazope:8080/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>
<VirtualHost 111.222.333.444>
ServerAdmin webmaster@foo.org
ServerName site3.foo.org
ProxyPass
/http://mazope:8080/VirtualHostBase/http/site3.foo.com:8080/site3/VirtualHostRoot
ProxyPassReverse /
http://mazope:8080/VirtualHostBase/http/site3.foo.com:8080/site3/VirtualHostRoot
ProxyPass /misc_ http://mazope:8080/misc_
ProxyPass /p_ http://mazope:8080/p_
</VirtualHost>
>Luke
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
>http://lists.zope.org/mailman/listinfo/zope-dev )
It can be complicated. I had trouble when I first Tried to setup a
ProxyPass and VHM but once it click you will not have any trouble doing
it. I hope this helps you out.
SR
----------------------------------------------------
Sherwood Robinson
Hostmaster
The Free Lance-Star/Internet Department
srobinson@fredericksburg.com
http://www.fredericksburg.com
616 Amelia St.
Fredericksburg, VA 22401
540-374-5000 ext. 5657