Re: ProxyPass with Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, Jan 28, 2003 at 12:22:41PM -0800, Raul Acevedo wrote:
> I'm having problems setting up a very simple proxy with Apache.
> Something seems to have changed between 1.x and the 2.0 in RedHat,
> because I used to have this working.
> 
> Anyway, on the firewall I have:
> 
>   <VirtualHost some.ip.address>
>     ... ServerName and other typical stuff here ...
>     ProxyPass /foo http://internal_server/foo
>     ProxyPassReverse /foo http://internal_server/foo
>   </VirtualHost>
> 
> When I try http://firewall_machine/foo, I get a 403 error which shows up
> in the error_log as "client denied by server configuration:
> proxy:http://internal_server/foo";. 

ProxyPass works fine for me here...

> I have tried:
> 
> * Adding ProxyRequests On
>
> * Adding <Proxy *> Order Allow,Deny  Allow from all </Proxy>
> 
> * Adding <Directory proxy:http://internal_server/foo> Order Allow,Deny
>   Allow from all</Directory>

You shouldn't need any of those.
 
> None of these make a difference, though sometimes depending on the
> variation I'll still get 403 but the error log will show "proxy: No
> protocol handler was valid for the URL /foo. If you are using a DSO
> version of mod_proxy, make sure the proxy submodules are included in the
> configuration using LoadModule."  (Yes, the LoadModule for proxy is
> there.)

Make sure your config has all the following lines (which the default
does):

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

you'll get a 403 if you're missing mod_proxy_http and you try to reverse 
proxy to an HTTP site.

Regards,

joe



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux