Re: Question regarding ProxyPass and "!"

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

 



On Thu, Sep 26, 2013 at 10:58 AM, Thomas Eckert
<thomas.r.w.eckert@xxxxxxxxx> wrote:
> Using a config like this
>
> <Proxy balancer://cd107d9706d71153bafd4ab15f1c6b5d>
>         BalancerMember http://backend.example.local status=-SE
> </Proxy>
> <VirtualHost 10.10.10.10:80>
>         ServerName frontend.example.local
>         SSLProxyEngine On
>         RequestHeader set X-Forwarded-Proto http
>         <Location /helloworld/>
>                 ProxyPass !
>                 ProxyPassReverse !
>         </Location>
>         <Location />
>                 ProxyPass balancer://cd107d9706d71153bafd4ab15f1c6b5d
>                 ProxyPassReverse balancer://cd107d9706d71153bafd4ab15f1c6b5d
>         </Location>
> </VirtualHost>
>
> should I not expect requests to /helloworld/ to be mapped to the files being
> served directly from frontend.example.local instead of being proxied away to
> backend.example.local ? In other words, backend.example.local should not
> even see that request.


The second Location directive overwrites the first one. Reverse the
order, with the most specific section coming last.

For ProxyPass and Alias, the exact opposite applies, list the most
specific section first.

This is documented here:

http://httpd.apache.org/docs/current/sections.html#overlapping-webspace

Cheers

Tom

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