You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Toomas Aas <to...@raad.tartu.ee> on 2012/09/11 06:38:36 UTC

Re: [users@httpd] balancer configuration URL exception

Hello Ed!

> I have a load balancer configuration in httpd.conf that directs all traffic
> to the to two remote tomcat servers, but I want to have an exception for
> the balancer_manager which is on the Apache server. Currently if I append
> the balancer_manager to the apache server url I get
> http://chimps-lb-03.cable.whosit.com/balancer-manager
> HTTP Status 404 - /balancer-managerbecause there's no /balancer-manager on
> either of the the tomcat application servers I'm proxying.
>
> How can I create an exception so that this URL does not redirect to the two
> tomcats?

Adding the following before the ProxyPass directive should do the trick:
ProxyPass /balancer-manager !

>
> httpd.conf:
>
>   ## loadfactor set to each server of equal capability.
> <Proxy balancer://cluster>
>         BalancerMember ajp://chimps-lb-01.cable.whosit.com:8009
>         BalancerMember ajp://chimps-lb-02.cable.whosit.com:8009
> #       ProxySet lbmethod=bytraffic
> </Proxy>
> ProxyPass / balancer://cluster/
> ProxyPassReverse / balancer://cluster/
>
> <Location /balancer-manager>
>     SetHandler balancer-manager
>     Order Deny,Allow
> #    Deny from all
>     Allow from all
> </Location>
>

-- 
Toomas Aas


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