httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Evans <>
Subject Re: Bug with "ProxyPass /" and mod_proxy_balancer + double-slashes (httpd-2.4.3)
Date Thu, 06 Sep 2012 14:40:18 GMT
On Thu, Sep 6, 2012 at 12:42 PM, Zisis Lianas <> wrote:
> Also with the trailing slash the config does not work correctly,
> see attached logfile. Please keep in mind that this only happens
> if the backend returns a 301.
> Status from backend: 301
> Location:
> [...]
> Response sent with status 301, headers:
> Location:
> [...]
> Request received from client: GET //clusterjsp/ HTTP/1.0

Only if your configuration is incorrect. The behaviour you are talking
about is solely concerned with how you have configured
ProxyPassReverse, which you have not shown. If you have incorrectly
matched '/'s on ProxyPassReverse, you will also have issues.

With ProxyPass and ProxyPassReverse, if the first argument ends in a
slash, so should the second. Eg, straight from my production

<Proxy balancer://cluster>
    BalancerMember http://app05 retry=0
    BalancerMember http://app07 retry=0 status=+H

ProxyPass / balancer://cluster/

ProxyPassReverse / http://app05/
ProxyPassReverse / http://app07/

This configuration works correctly in all cases.



View raw message