httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] mod_proxy question
Date Mon, 11 Feb 2008 20:51:52 GMT
On Feb 11, 2008 3:12 PM, Ekkehard 'Ekki' Gehm <> wrote:
> Hi everybody!
> Maybe someone can help me with this issue. We do have a strange setup of
> different webservers here, and I want to have the main one proxying the
> content of the otherone exept of a few dirs.
> So my setup is:
> ...
> ProxyPass /pcpool !
> ...
> ProxyPass /
> That all works fine. But when i add a line
> ...
> ProxyPass   ^/~([^/]+)/?(.*) !
> ...
> It won't serve the userdirs locally. Could someone tell me how to leave
> the public_html files untouched by the Proxy Module? I also tried it
> with Rewrite Rules....

You can't use a regex in ProxyPass. You can do it with mod_rewrite or
you can do it with ProxyPassMatch, assuming you are using 2.2.5 or

Of course, the regex you have written is almost exactly equivalent to
ProxyPass /~ !
So just using that would be the simplest solution.

Remember that exceptions need to be written BEFORE the main ProxyPass

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message