Using mod_proxy_balancer... GET missing!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux