On May 11, 2007, at 5:39 PM, Nick Kew wrote:
On Fri, 11 May 2007 15:19:58 -0400
Jim Jagielski <[EMAIL PROTECTED]> wrote:
I've been looking at extending ProxyPass to
accept and use globbing patterns (basically,
to make it easier for those migrating from
mod_jk and JkMount to Apache 2.2), and it's
almost trivially easy, but there are some
"gotchas":
Two half-thoughts:
Is there a strong reason to prefer globs over regexps?
Regex's are almost as trivially easy to add but
1. slightly more complex structure
2. minor bump to proxy_alias struct
A regexp doesn't have to be more complex than a glob,
but gives the user who wants it that bit more hack-fu,
and enables things people will want like
ProxyPass \.(gif|jpe?g|png)$ http://backend/
Second, putting ProxyPass in a Directory context accomplishes
the same thing more simply by enabling <LocationMatch> on it.
Except, of course, that this does not work :)