[Zope] Apache / VHM ProxyPass issue - RESOLVED
Dylan Reinhardt
zope@dylanreinhardt.com
Fri, 21 Feb 2003 16:38:47 -0800
I managed to figure this one out on my own, so please ignore my previous
message.
For the curious (and the benefit of posterity), what I did was:
1. Learned that ProxyRequests has nothing to do with enabling
ProxyPass. My bad.
2. Changed Listen to 76 so I could test this while running Zope on 80.
3. Noticed that as soon as I did that, I got the same critical error 98...
but on port 76 this time. Hmmm...
4. Eventually realized that the port error was an artifact of my reload
script... a red herring.
5. Once Apache was on 76 it was obvious the vhosts should be on port 76 as
well... and it worked!
6. I realized that Apache was only *listening* on port 80 before. I was
actually running on port 70, meaning that since I didn't say any
differently, the vhosts were also on 70. I needed to specify that the
vhosts were on 80. Grrr...
7. Fixed one additional error: the ProxyPass and ProxyPassReverse
directives should have had trailing slashes.
And now it works like a charm. At some point I'll add this to my
Zope-on-a-RaQ howto, as the port/listen issue seems like an uncommon
configuration on non-RaQ systems.
FWIW,
Dylan
At 09:37 AM 2/21/2003, Dylan Reinhardt wrote:
>Hi all,
>
>I've been running Zope 2.5.1 standalone on a Cobalt RaQ that runs a Red
>Hat variant. Apache 1.3.12 is installed, and now I'm working on getting
>it to front for Zope.
>
>For the virtual site my_domain, whose stuff is stored in
>zope_root/sites/my_site_folder, the following URL works great:
>
>http://my_ip:8080/VirtualHostBase/http/www.my_domain.com:80/sites/my_site_folder/VirtualHostRoot
>
>So I'm pretty sure I've got Zope & VHM set up correctly.
>
>Moving on to httpd.conf, I'm a bit less confident. I'm happy to post the
>whole thing if someone wants to see it, but here's what I believe are the
>relevant settings (where stand-ins like my_ip match values in the above URL).
>
>-------------
>LoadModule proxy_module modules/libproxy.so
>AddModule mod_proxy.c
>
>Port 75
>Listen 80
>
>ProxyRequests On
>
>NameVirtualHost my_ip
><VirtualHost my_ip>
>ServerName www.my_domain.com
>ServerAdmin admin
>ProxyPass /
>http://localhost:8080/VirtualHostBase/http/www.my_domain.com:80/sites/my_site_folder/VirtualHostRoot
>ProxyPassReverse /
>http://localhost:8080/VirtualHostBase/http/www.my_domain.com:80/sites/my_site_folder/VirtualHostRoot
></VirtualHost>
>-------------
>
>Set up like this, I get a RaQ-specific server mis-configuration error when
>I try to connect to a virtual host. Even so, a virtual host set up with
>DocumentRoot works fine. If I comment out the ProxyRequests directive,
>there doesn't appear to be a config error, but also there's no proxy service.
>
>Looking through the error logs, there is one entry that looks promising:
>
>[crit] (98)Address already in use: make_sock: could not bind to port 80
>
>Which confuses me, since Apache is correctly handling non-proxy requests
>on 80 when this error kicks up. It makes me wonder if something about my
>proxy configuration is causing Apache to trip over itself.
>
>Does this problem look familiar to anyone here and/or have I made an
>obvious mistake in my httpd.conf? I've searched the Apache docs and lists
>without seeing anything helpful... I thought people here might have more
>hands-on experience with ProxyPass virtual hosting issues.
>
>Thanks in advance for any assistance,
>
>Dylan
>
>
>_______________________________________________
>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 )