You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ed Young <ej...@summitbid.com> on 2012/08/29 20:53:54 UTC
[users@httpd] balancer configuration URL exception
I'm an Apache noob, so apologies if I'm not using the correct terminology
below.
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?
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>
Re: [users@httpd] balancer configuration URL exception
Posted by Toomas Aas <to...@raad.tartu.ee>.
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