[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] Order of ProxyPass directives
From:       "Tilman Koschnick" <til () subnetz ! org>
Date:       2019-03-06 15:59:34
Message-ID: 6f91af60fc325bc22e215cda4f0cd43b.squirrel () www ! subnetz ! org
[Download RAW message or body]

On Wed, March 6, 2019 16:38, Eric Covener wrote:
>> According to
>> http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass
>> , rules are processed in order of configuration, so more specific URLs
>> should come first. But requests to http://myserver/somepath/ are going
>> to
>> the second, uwsgi backend - what am I missing?
>
> That ordering refers to the two-argument version of these directives.
> If you enclose them in Location directives, they are going to be
> subject to the order of merging configuration sections. For Location,
> the 2nd stanza essentially replaces the first.
>
> I'd suggest not wrapping them in Locaton.

Thanks a lot, that's done the trick. FWIW, reversing the order of Location
directives does as well - here the last one wins.

Cheers, Til


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic