Re: ProxyPass ordering

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

 



Indeed.

ProxyPass goes most specific first.
Example of sorting:
ProxyPass /something ...
ProxyPass /

While Location should go more global first.
Example or sorting:
Location /
Location /something

As a general rule of thumb, when directive itself specifies url-path
don't use location, in this case ProxyPass first parameters is an
url-path, so using location to define proxypass adds unneeded
complexity.

2017-10-04 16:07 GMT+02:00 Eric Covener <covener@xxxxxxxxx>:
> My recollection is that the ordering is NOT handled similarly when in
> Location. Each directive will replace the last.
>
> On Wed, Oct 4, 2017 at 8:04 AM, Victor Engle <victor.engle@xxxxxxxxx> wrote:
>> I have a site where multiple locations are mapped to different Proxy
>> balancers named balancer1, balancer2, balancer3 etc. One of the locations
>> mapped is root, "/", and according to the documentation, if that ProxyPass
>> mapping comes last in the config, it should work as expected. Instead, with
>> Apache2.4.27, I see everything being sent to the balancer that I've mapped
>> "/" to. The ProxyPass directives are inside Location directives but they are
>> in the correct order.
>>
>> Does having the ProxyPass directives inside Location directives interfere
>> with the ordering? Is this a known problem? If so, is there a work-around or
>> recommended way to support a config like this in the latest apache release.
>>
>> Thanks,
>> Vic
>>
>
>
>
> --
> Eric Covener
> covener@xxxxxxxxx
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>



-- 
Daniel Ferradal
IT Specialist

email         dferradal at gmail.com
linkedin     es.linkedin.com/in/danielferradal

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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