On Tue, Feb 22, 2005 at 06:01:03PM +0100, Paolo Negri wrote:
With apache 1.3 i was using mod_proxy to access tomcat server from an apache virtualhost.
With Apache 2.0 i always get a 403 forbidden reply by apache.
Can you help me?
My vhost configuration is
<VirtualHost myhost.mydomain.com:443> ServerAdmin sysadmin@mydomain.com ServerName myhost.mydomain.com
ProxyVia On ProxyRequests On
Caution!! Are you sure you want ProxyRequests On? It easily makes you a open proxy. (Setting ProxyRequests to Off does not disable use of the ProxyPass directive.)
<Proxy *> Order Allow,Deny Allow from all </Proxy>
Same here. I don't know how apache needs to talk to tomcat, but I doubt you need to run it as a forward proxy for that. For a reverse proxy, you'll need ProxyPass and ProxyPassReverse only.
ProxyPass / http://localhost:8080 ProxyPassReverse / http://localhost:8080
ErrorLog /var/log/apache2/vhost-error_log TransferLog /var/log/apache2/vhost-access_log </VirtualHost>
Peter -- the big machine that goes "ping" ate the pink can of spam