Does any one know how to use VHM with such a httpd.conf : <VirtualHost www.toto.com> ServerAdmin webmaster@toto.com ServerName www.toto.com DocumentRoot /web/htdocs/www.toto.com ErrorLog logs/error.Apache CustomLog logs/access.www.toto.com combined # Cf. Zope/Apache HOW-TO RewriteEngine on RewriteCond %{REQUEST_URI} !^/static/ RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) http://www.toto.com:9080/www_toto_com/$1 [P] </VirtualHost> It does not work (does nothing) when I do not use a SiteRoot object avec cette config ! ----- Original Message ----- From: "Sherwood Robinson" <srobinson@fredericksburg.com> To: "luke tymowski" <luke@seeto.com>; <zope@zope.org> Sent: Monday, May 21, 2001 3:20 PM Subject: Re: [Zope] Apache ProxyPass and VirtualHostMonster
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/VirtualHostRo ot
ProxyPassReverse /
http://mazope:8080/VirtualHostBase/http/www.foo.com:8080/site1/VirtualHostRo ot
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/VirtualHost Root
ProxyPassReverse /
http://mazope:8080/VirtualHostBase/http/site2.foo.com:8080/site2/VirtualHost Root
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/VirtualHos tRoot
ProxyPassReverse /
http://mazope:8080/VirtualHostBase/http/site3.foo.com:8080/site3/VirtualHost Root
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
_______________________________________________ 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 )