You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matthew Lenz <ma...@nocturnal.org> on 2012/01/12 16:13:46 UTC
[users@httpd] reverse proxy, proxyrequests off, remote proxy request returns local
root
Debian 5.x setup
|**|mods-enabled# cat proxy*
<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
#Allow from .example.com
</Proxy>
ProxyVia On
</IfModule>
# Depends: proxy
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
I'm using ProxyPass and ProxyPassReverse to do some reverse proxying.
It all works fine but when scanners try to do a GET
http://some.remote.com/ rather than just 503ing it 200s the local
default root. It's not really a big deal but it is annoying.
One suggestion on IRC was to set the default server to an invalid root
but then straight IP/port requests would fail I'm guessing and muck with
our tcp based load balancing.
Any way to make it 503 url requests but still allow the proxypass* to
function?