httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject [PATCH] ProxyRemote + ProxyBlock oddness
Date Mon, 25 Apr 2005 20:49:31 GMT
I'm seeing changed behavior between 2.1 and previous releases, under
the following example config:

<VirtualHost *:8080>
ProxyRequests on
ProxyRemote * http://proxy:8080
ProxyBlock blocked
</VirtualHost>

In a request for http://requested/  I can see that  mod_proxy compares
the addresses for blocked with those of proxy as opposed to comparing
addresses for blocked and requested.

I've attached a patch that resolves the hostname in the URI and hands
that off separately to ap_proxy_checkproxyblock().   Not quite sure of
the pool usage though.

In the event that we're forwarding to another proxy and no ProxyBlocks
are in the config, the lookup of the URI hostname is avoided.

-- 
Eric Covener
covener@gmail.com

Mime
View raw message