You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kenneth Svee <k....@usit.uio.no> on 2006/11/06 11:16:30 UTC

Re: [users@httpd] Apache load balancing

[ "jackywong@webnic.cc" <ja...@webnic.cc> ]

> 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?

This is a mod_caucho (Resins Apache-module) config-issue. Please se
the Resin-docs:

  http://www.caucho.com/resin-3.0/install/cse-apache.xtp#balance


(What you want is to check out the CauchoHost- and
CauchoBackup-directives.)


Rgds,
Kenneth Svee

---------------------------------------------------------------------
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