Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: mod-proxy: ProxyPreserveHost & ProxyPassReverse |
|
Author |
|
sjjrbhz
Joined: 09 Aug 2007 Posts: 1
|
Posted: Thu 09 Aug '07 2:57 Post subject: mod-proxy: ProxyPreserveHost & ProxyPassReverse |
|
|
I am using Apache 2 to load-balance 3 IIS servers. The ProxyPreserveHost directive is ON. Do I still need to configure ProxyPassReverse directive ?
Thanks. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 10 Aug '07 16:11 Post subject: |
|
|
A sample balancer setup
Code: |
ProxyPass /special-area http://special.example.com/ smax=5 max=10
ProxyPass / balancer://mycluster stickysession=JSESSIONID|jsessionid nofailover=On
<Proxy balancer://mycluster>
BalancerMember http://1.2.3.4:8009
BalancerMember http://1.2.3.5:8009 smax=10
# Less powerful server, don't send as many requests there
BalancerMember http://1.2.3.6:8009 smax=1 loadfactor=20
</Proxy>
|
Setting up a hot-standby, that will only be used if no other members are available
Code: |
ProxyPass / balancer://hotcluster/
<Proxy balancer://hotcluster>
BalancerMember http://1.2.3.4:8009 loadfactor=1
BalancerMember http://1.2.3.5:8009 loadfactor=2
# The below is the hot standby
BalancerMember http://1.2.3.6:8009 status=+H
ProxySet lbmethod=bytraffic </Proxy>
|
Found the in docs
google search words balancer "Version 2.2" -"List-Post" site:httpd.apache.org |
|
Back to top |
|
|
|
|
|
|