[Zope] Re: Apache as a proxy

Tres Seaver tseaver at zope.com
Wed Mar 9 17:32:03 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matt Francis wrote:
| Does anyone one know how to configure apache to proxy for zope?  I
followed
| the documentation and I can't get it to work.  This is what I have:
|
|     ProxyPass /folder1 http://localhost:8080/folder1
|     ProxyPassReverse /folder1 http://localhost:8080/folder1/'
|
| When I hit this page through apache, I can see my auth page.  After I
| successfully authenticate to my application, zope kicks me back to the
8080
| port instead of apache.  Any help would be appreciated.

Forget using mod_proxy directly -- you want mod_rewrite.  E.g.:

<VirtualHost *:80>
~    ServerAdmin webmaster at example.com
~    ServerName  www.example.com
~    ServerAlias example.com
~    ErrorLog    /path/to/logs/error.log
~    CustomLog   /path/to/logs/access.log combined
~    RewriteEngine On
~    RewriteRule ^/(.*)
http://127.0.0.1:10080/VirtualHostBase/http/%{HTTP_HOST}:80/example/VirtualHostRoot/$1
[L,P]
</VirtualHost>

The 'P' flag on the rule makes it function as a proxy.

Tres.
- --
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCL3ljGqWXf00rNCgRAh7mAJ92iYuUbSvA7bkaMicgj3U7AEyiEACfQ2qC
U9DLrEsBQ8vct/Ha4rdjHUM=
=8PRE
-----END PGP SIGNATURE-----



More information about the Zope mailing list