[Zope] Apache / VHM ProxyPass issue

Dylan Reinhardt zope@dylanreinhardt.com
Fri, 21 Feb 2003 09:37:12 -0800


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