[Zope] Apache ProxyPass and VirtualHostMonster

luke tymowski luke@seeto.com
Mon, 21 May 2001 09:31:42 -0400


Hello Sherwood,

> Well I didn't see an answer for this so I will try and help.

Actually Timothy Wilson asked how to do it using ProxyPass and VHM.

I use SiteRoots not VHM and explained how to do it using SiteRoots 
instead. But my reply got a bit munged so it wasn't easy to tell that I 
was actually responding not asking. :)

But no one else answered his question afaik so this should help them.

thanks,

Luke

> First in your root folder place a VirtualHostMonster Object.  You can 
> call it whatever you like
> Now to the Proxy Passing!
>
> 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/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/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>
>
> 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