[users@httpd] Apache load balancing

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

 



Dear all,

In our environment, we are using 1 apache server and load balanced to 2 resin servers (all in different machines).

A snippet of our apache httpd.conf:

<VirtualHost external_ip:80>
  RewriteEngine on
  RewriteCond %{SERVER_PORT}   ^80$
  RewriteCond %{HTTP_HOST}   ^some\.domainname\.com$
  RewriteRule ^/(.*)         https://some.domainname.com/$1 [L,R]
  DocumentRoot /www/app01
  ServerName svr01
  DirectoryIndex index.jsp
  ResinConfigServer 192.168.11.101 6802
  ResinConfigServer 192.168.11.102 6802
  CauchoStatus yes

  # do not remove, otherwise apache will serve the jsp source code once resin is down
  AddHandler caucho-request .jsp
</VirtualHost>

I need it to go to 192.168.11.102 until it is unable to accept request, and then only fail over to 192.168.11.101.
The reason why i want to do this is because, 102 is a higher-end server and 101 is our old server.
How do i set the priority of the servers?

I'm open to all suggestions.
Thanks.
-- 
Warm regards,
Jacky Wong

--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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