httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toomas Aas <toomas....@raad.tartu.ee>
Subject Re: [users@httpd] balancer configuration URL exception
Date Tue, 11 Sep 2012 04:38:36 GMT
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


Mime
View raw message