Re: mod_rewrite, mod_proxy, order of execution?

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

 



On Wed, Oct 15, 2008 at 7:07 AM, howard chen <howachen@xxxxxxxxx> wrote:
> Hello,
>
> On Wed, Oct 15, 2008 at 6:49 PM, Eric Covener <covener@xxxxxxxxx> wrote:
>> On Wed, Oct 15, 2008 at 4:47 AM, howard chen <howachen@xxxxxxxxx> wrote:
>>>
>>> Seems that Rewrite is done after the proxy? How to control the order then?
>>
>> in 2.2, rewrite will always happen first. In 2.0 it's unpredictable.
>>
>> To control the order, use RewriteRule with [P] instead of ProxyPass
>> when it "overlaps" with other RewriteRules.
>>
>> --
>
> (I am using Apache 1.37.)
>
>
> Now I am also using rewrite with [p] flag, everything ok.
>
>
> So does it mean mixing proxypass with rewrite rule is not recommended?

Only where they overlap and it's before 2.2, because it's undefined as
to which will run first.

In 1.3 you might be able to control it by AddModule ordering, but in
2.0 it may differ from system to system and you end up just swapping
the LoadModule and crossing your fingers.



-- 
Eric Covener
covener@xxxxxxxxx

---------------------------------------------------------------------
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