Jim Jagielski 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":
> 
>    1. ProxyPass /foo/* balancer://bar
>       should silently rewrite itself to
>        ProxyPass /foo/ balancer://bar
> 
>       In other words, we already assume a prefix
>       glob.  But should we? In other words,
>       there is no difference between /foo/ and /foo/*.
> 
>    2. ProxyPass /*.gif balancer://bar
>       How to handle /i/j/jim.gif? Should
>       the resultant proxy request be
>       balancer://bar/i/j/jim.gif (ie: the whole
>       glob) or balancer://bar/jim.gif.
>       I think the former is the most logical
>       and the most unsurprising.

Well... I think we should consider a more generic way to do this.

What I would like to see is something like

AddHandler gif proxy=balancer://bar

If mod_proxy knew about a handler syntax like this, you could do lots of
creative things, using SetHandler....

<DirectoryMatch /foo/bar*cats/>
  Set proxy=balancer://bar
</DirectoryMatch>

Which to me, seems like an easier thing to explain.  There is one way to
set handlers.. and thats all everything uses.

Thoughts?

-Paul

Reply via email to