[Zope] Zope+Apache+ProxyPass

Ivan Cornell ivan.cornell@framestore.co.uk
Thu, 22 Feb 2001 10:00:39 +0000


>
> Example:
>
> Let=B4s say i want to set up the site www.mysite.com that has
> Apache listening on 80 an ZServer on 1485
>
> I also have some static content located in "/home/httpd/html/stat"
>
> This configuration with ProxyPass should be like this:
>
> <VirtualHost 200.224.238.200>
>
> ServerName www.mysite.com
> ServerAdmin admin@mysite.com
>
> # Here goes my doubt. In these two lines below, i say that all requests
> # will be passed to Zserver, but this is not exactly what i want.
> # The requests with "/sta"t i don=B4t wanna pass to Zserver,
> # i would like to use apache itself to serve this content.
>
> ProxyPass / http://www.mysite.com:1485/
> ProxyPassReverse / http://www.mysite.com:1485/
>
> </VirtualHost>
>

Use rewriting rules, eg:

    ProxyPassReverse / http://www.mysite.com:1485/
    RewriteEngine On
    RewriteLogLevel 0
    RewriteLog "/var/log/httpd/rewrite_log"
    RewriteRule ^/stat/ - [L]
    RewriteRule ^/(.*) http://www.mysite.com:1485/$1 [P]

There is a howto on zope about it.The above lines says treat /stat/ as
local  [L],using the normal doc_root, & everything else should be proxied
[P]

Ivan