DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40910>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40910

           Summary: configuration problem with more than 1 balancer
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_balancer
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


When defining more than 1 proxy balancers the system sometimes ignores
configurations and takes the first balancer for all requests. ErrorLog and
configtest say everything is ok, the effect seems to be depending of the order
of configuration

The following configuration doesn't work

<VirtualHost xxx.xxx.xxx.xxx>
    <Proxy balancer://cluster1>
        BalancerMember http://10.x.x.x loadfactor=20 retry=60
        BalancerMember http://10.x.x.y loadfactor=10 retry=60
    </Proxy>
    <Proxy balancer://cluster2>
        BalancerMember http://10.x.x.x:8080 loadfactor=20 retry=60
        BalancerMember http://10.x.x.y:8080 loadfactor=10 retry=60
    </Proxy>
     RewriteEngine on
     RewriteRule ^/specialpath/(.*)$ balancer://cluster2/specialpath/$1 [NC,P,L]
     RewriteRule ^/(.*)$ balancer://cluster1/$1 [P,L]
</VirtualHost>

Every request to specialpath is routed to the webs linked in cluster1
If I change the sequence of the 2 balancers it works

<VirtualHost xxx.xxx.xxx.xxx>
    <Proxy balancer://cluster2>
        BalancerMember http://10.x.x.x:8080 loadfactor=20 retry=60
        BalancerMember http://10.x.x.y:8080 loadfactor=10 retry=60
    </Proxy>
    <Proxy balancer://cluster1>
        BalancerMember http://10.x.x.x loadfactor=20 retry=60
        BalancerMember http://10.x.x.y loadfactor=10 retry=60
    </Proxy>
     RewriteEngine on
     RewriteRule ^/specialpath/(.*)$ balancer://cluster2/specialpath/$1 [NC,P,L]
     RewriteRule ^/(.*)$ balancer://cluster1/$1 [P,L]
</VirtualHost>

Balancer Manager Webpage shows both clusters, but in case 1 the ports of cluster
2 are "lost", in case 2 it is shown correctly with port 8080

With 3 or more backend clusters this issue would be even more complicated to 
test

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to