[Zope] Re: Zope, Squid and Apache

Jens Vagelpohl jens at dataflake.org
Thu Dec 9 10:14:20 EST 2004


On Dec 9, 2004, at 16:08, David Chandek-Stark wrote:

>> Would it be possible, if you could tell us what your setup is.
>
> Sure. This is basically it:
>
> www.mydomain.com - Squid running on port 80
> www2.mydomain.com - Apache on port 80, Zope on port 8080 (obviously,  
> Apache and Zope could be on separate boxes)
>
> squid.conf:
>
> http_port 80
> httpd_accel_host www2.mydomain.com
> httpd_accel_port 80
> httpd_accel_single_host on
> httpd_accel_uses_host_header off
>
> httpd.conf:
>
> # Apache proxy for Zope
> RewriteRule ^/(.*)$  
> http://localhost:8080/VirtualHostBase/http/www.mydomain.com:80/ 
> VirtualHostRoot/$1 [proxy]

If the Apache is only used to provide a convenient way for adding a  
rewrite rule in order to avoid redirectors for Squid then you might be  
interested in the VirtualHostMonster "Mappings" tab in the ZMI. It  
allows you to codify virtual host information in Zope itself without  
using external rewrite rules.

jens



More information about the Zope mailing list