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. Thanks
-----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@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@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-----
participants (2)
-
Matt Francis -
Tres Seaver