Hello, I have tried to follow configuration of Apache using the ProxyPass and ProxyPassReverse directives with no luck. I want to provide access to the locally running Zope server from Apache, in addition to various other static pages. I've added the entries according to the wonderful HOWTO: http://www.zope.org/Members/anser/apache_zserver/ but it still does not work. My entries look like this: ProxyPass /zope http://localhost:8080/ ProxyPassReverse /zope http://localhost:8080/ ProxyPass /misc_ http://localhost:8080/misc_ ProxyPass /p_ http://localhost:8080/p_ This is defined in the server config file (gentoo: /etc/apache2/conf/apache.conf) outside of any VirtualHost context. I am able to access the top level Zope page, but all other pages after that contains references to the local host (http://localhost:8080/...). I added a SiteRoot object: Title: (ignored) Base: http://xyz.domain.org/zope Path: / as required, but no go. Did I miss an important configuration step. Also, I am using the default gentoo ebuild for both Apache and Zope (Zope-Config); no changes to the base configuration files. Zope & Apache appear to work OK by themselves. Thanks, --kris
On Tue, Dec 07, 2004 at 04:43:13PM -0800, Kris Smith wrote:
I have tried to follow configuration of Apache using the ProxyPass and ProxyPassReverse directives with no luck. I want to provide access to the locally running Zope server from Apache, in addition to various other static pages. I've added the entries according to the wonderful HOWTO: http://www.zope.org/Members/anser/apache_zserver/ but it still does not work. My entries look like this: ProxyPass /zope http://localhost:8080/ ProxyPassReverse /zope http://localhost:8080/ ProxyPass /misc_ http://localhost:8080/misc_ ProxyPass /p_ http://localhost:8080/p_
Try adding: ProxyPreserveHost On -- Anders -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS/O d--@ s:+ a-- C++ UL+++$ P++ L+++ E- W+ N(+) o K? w O-- M- V PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b++ DI+++ D+ G e- h !r y? ------END GEEK CODE BLOCK------ PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41
I find using Apache mod_rewrite (required mod_proxy) with a Zope Virtual Host Monster much easier: RewriteEngine On RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/your.virtual.host:80/VirtualHostR... [proxy] That's about it. :) --David Kris Smith wrote:
Hello,
I have tried to follow configuration of Apache using the ProxyPass and ProxyPassReverse directives with no luck. I want to provide access to the locally running Zope server from Apache, in addition to various other static pages. I've added the entries according to the wonderful HOWTO:
http://www.zope.org/Members/anser/apache_zserver/
but it still does not work. My entries look like this:
ProxyPass /zope http://localhost:8080/ ProxyPassReverse /zope http://localhost:8080/ ProxyPass /misc_ http://localhost:8080/misc_ ProxyPass /p_ http://localhost:8080/p_
This is defined in the server config file (gentoo: /etc/apache2/conf/apache.conf) outside of any VirtualHost context. I am able to access the top level Zope page, but all other pages after that contains references to the local host (http://localhost:8080/...). I added a SiteRoot object:
Title: (ignored) Base: http://xyz.domain.org/zope Path: /
as required, but no go.
Did I miss an important configuration step.
Also, I am using the default gentoo ebuild for both Apache and Zope (Zope-Config); no changes to the base configuration files. Zope & Apache appear to work OK by themselves.
Thanks,
--kris
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Anders Bruun Olsen -
David Chandek-Stark -
Kris Smith