httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Lenz <matt...@nocturnal.org>
Subject [users@httpd] reverse proxy, proxyrequests off, remote proxy request returns local root
Date Thu, 12 Jan 2012 15:13:46 GMT
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?

Mime
View raw message