You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Douglas Garstang <do...@gmail.com> on 2010/01/21 21:59:08 UTC
[users@httpd] Using mod_proxy_balancer... GET missing!
I have two servers sitting behind apache that I need to load balance
between. My config is:
<VirtualHost openelements.xxx.com:443>
ServerName lbal01.nyc.xxx.com
ServerAlias openelements.xxx.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /balancer-manager !
ProxyPass / balancer://openelements/ stickysession=JSESSIONID
nofailover=On
#ProxyPassReverse / http://app01.nyc.xxx.com:8080/admin
#ProxyPassReverse / http://app02.nyc.xxx.com:8080/admin
<Proxy balancer://openelements>
BalancerMember http://app01.nyc.xxx.com:8080 route=app01
BalancerMember http://app02.nyc.xxx.com:8080 route=app02
ProxySet lbmethod=byrequests
</Proxy>
<Directory "/Library/WebServer/Documents">
AllowOverride AuthConfig
</Directory>
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from all
</Location>
</VirtualHost>
I'm not really sure what I am doing, and I'm still trying to
understand the difference between BalancerMember and ProxyPassReverse.
However, requests to openelements.xxx.com:443 are in fact being load
balanced to the two backend servers. But... something is wrong... this
is what ngrep shows me...
T 192.168.1.204:60093 -> 192.168.1.201:8080 [AP]
... / HTTP/1.1..Host: app01.nyc.xxx.com:8080..X-Forwarded-For:
173.8.157.70..X-Forwarded-Server: lbal01.nyc.xxx.com..Connection:
Keep-Alive....
##
The problem here is that apache isn't a) forwarding the original URL
(it doesn't matter what I put after openelements.xxx.com/) and b) the
HTTP GET is missing. What's up with that? I have confirmed that the
GET (and the correct URL) are there when I access the backend servers
directly.
Thanks,
Doug.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org