On 10/20/2010 6:43 PM, Graham Leggett wrote:
Hi all,
On sites with large numbers of ProxyPass directives, these directives
are matched in turn on every request, and this can take a lot of time,
especially when we've already done a location walk.
A simple optimisation is to allow this existing syntax:
<Location /foo>
ProxyPass http://somewhere/foo
</Location>
to simply be a single mod_proxy alias in a per-directory context.
If this syntax is used, the need to walk the proxy alias list is
eliminated, and a significant amount of time is saved.
This also has the side effect that ProxyPass inside LocationMatch starts
working properly (it was broken before):
<LocationMatch ^/foo(.*)>
ProxyPass http://somewhere/$1
</LocationMatch>
In theory, the "ProxyPass /foo http://somewhere/" and "ProxyPassMatch
^/foo(.*) http://somewhere/$1" syntaxes can be deprecated, as
Location/LocationMatch is way simpler to handle.
Regards,
Graham
--
I like this idea quite a bit. I am not able to look at the codebase
right now, but could this work the same for ProxyPassReverse?
--
Daniel Ruggeri