Re: RedirectMatch and ProxyPass

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 22, 2010 at 12:55 PM, Eric Covener <covener@xxxxxxxxx> wrote:
>> It seems that the request goes first through mod_proxy and then only through
>> mod_alias, event it the mod_alias directives (RedirectMatch) appear first
>> ... is it a normal behavior ?
>
> It's normal, and the precedence the modules are coded for.
>
>> Is there a clean way to do what I want to do, without involving mod_rewrite
>> if possible ?
>
> Make your ProxyPassMatch more conservative with what it matches, or
> use Rewrite exclusively for the proxy and redirect so you have control
> on the order of evaluation (top-to-bottom in each config section when
> it's all RewriteRule)
>

Or use ProxyPass ! /path to preclude mod_proxy from proxying those
requests. They will then fall through to the mod_alias directives and
it will work as you expect.

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux