[Zope] Apache virtual host combined with Zope

Sherwood Robinson srobinson@fredericksburg.com
Fri, 06 Apr 2001 12:41:28 -0400


Setup a Virtual Host for your local Apache folder and run it on a different 
port.  Then you can proxy pass that port to the /eggs folder
The VH below will setup your Apache non-passed site on port 1080
<VirtualHost 1.2.3.4:1080>
     ServerAdmin support@spam.org
     DocumentRoot /spam.org/root/www
     ServerName spam.org
         <Directory "/spam.org/root/www">
                 Options Indexes FollowSymLinks MultiViews Includes ExecCGI
                 AllowOverride None
                 Order allow,deny
                 Allow from all
         </Directory>
</VirtualHost>

This VH will target your /eggs folder to the above VH so you can serve 
folders with apache

<VirtualHost 1.2.3.4>
     ServerAdmin support@spam.org
     DocumentRoot /spam.org/root/www
     ServerName spam.org
         ProxyPass       /       http://spam.org:8080/
         ProxyPassReverse        /       http://spam.org:8080/
         ProxyPass /misc_        http://spam.org:8080/misc_
         ProxyPass /p_   http://spam.org:8080/p_
         ProxyPass       /eggs   http://spam.org:1080/  # this is your port 
for VH to apache root
         ProxyPassReverse        /eggs   http://spam.org:1080/
</VirtualHost>


I have done proxypass with sub-directories pointing to other servers all 
together but not back to a VH from the same apache server.  But it should 
work.  Give it a try

Sherwood

At 11:12 AM 4/6/2001 -0500, Timothy Wilson wrote:
>On Fri, 6 Apr 2001, Oleg Broytmann wrote:
>
> > Ah, so your problem is different from what I though. I thought you want to
> > serve some dirs from Apache, and some from Zope.
>
>Oleg,
>
>What you're talking about *is* what I want to do. But i haven't been able to
>figure out for sure what I need to do. Let me give you an example...
>
>On Debian, my root for html document is /var/www. I can use a virtual host
>entry in my apache config and ProxyPass to direct all requests for spam.org
>to spam.org:8080. No problem there. Let's say, however, that I have a
>/var/www/eggs directory that I would like served by apache. Can ProxyPass do
>that by itself.
>
>In other words,
>
>www.spam.org should come from Zope at spam.org:8080
>www.spam.org/eggs should come from Apache (/var/www/eggs)
>
>Do I need a Rewrite rule?
>
>-Tim
>
>--
>Tim Wilson      | Visit Sibley online:         | Check out:
>Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
>W. St. Paul, MN |                              | http://slashdot.org/
>wilson@visi.com |   <dtml-var pithy_quote>     | http://linux.com/
>
>
>_______________________________________________
>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 )