httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45434] New: ProxyPassReverse and balancer:// don' t play nice
Date Fri, 18 Jul 2008 13:28:10 GMT

           Summary: ProxyPassReverse and balancer:// don't play nice
           Product: Apache httpd-2
           Version: 2.2.9
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All

I believe there's an issue with how ProxyPassReverse handles redirects in
conjuction with mod_proxy_balancer.
See below for an example configuration which details the setup.

The browser requests /foo from the Apache HTTPd  frontendserver. The frontend
server forwards the request to one of the balancer member servers (backend
The backend server decides /myservice/foo is a directory and redirects to

The browsers get the following Location: header back:

>From the below configuration you'd expect it to be just
"", with "/myservice" zapped. That's at least how things
work when you're not using mod_proxy_balancer (see "Demo 3" below) at all.

An example configuration which details the issue in two ways with
mod_proxy_balancer (demo 1 and 2) and one example which doesn't use
mod_proxy_balancer and provides the expected result (demo 3) 
<VirtualHost *>

        # Demo 1: The following does not work:
        ProxyPass                       /              
balancer://mycluster/myservice/ stickysession=JSESSIONID|jsessionid
        ProxyPassReverse        /               balancer://mycluster/myservice/
        <Proxy balancer://mycluster>

        # Demo 2: ..and neither does this
        ProxyPass                       /               balancer://mycluster/
stickysession=JSESSIONID|jsessionid nofailover=On
        ProxyPassReverse        /               balancer://mycluster/
        <Proxy balancer://mycluster>

        # Demo 3: This works though (but we can't do LB)
        ProxyPass                       /
        ProxyPassReverse        /


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message