httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject [users@httpd] Apache load balancing
Date Thu, 02 Nov 2006 04:11:40 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
<font size="-1">Dear all,<br>
In our environment, we are using 1 apache server and load balanced to 2
resin servers (all in different machines).<br>
A snippet of our apache httpd.conf:<br>
&lt;VirtualHost external_ip:80&gt;<br>
&nbsp; RewriteEngine on<br>
&nbsp; RewriteCond %{SERVER_PORT}&nbsp;&nbsp; ^80$<br>
&nbsp; RewriteCond %{HTTP_HOST}&nbsp;&nbsp; ^some\.domainname\.com$<br>
&nbsp; RewriteRule ^/(.*)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href="$1">$1</a>
&nbsp; DocumentRoot /www/app01<br>
&nbsp; ServerName svr01<br>
&nbsp; DirectoryIndex index.jsp<br>
&nbsp; ResinConfigServer 6802<br>
&nbsp; ResinConfigServer 6802<br>
&nbsp; CauchoStatus yes<br>
&nbsp; # do not remove, otherwise apache will serve the jsp source code once
resin is down<br>
&nbsp; AddHandler caucho-request .jsp<br>
I need it to go to until it is unable to accept request,
and then only fail over to<br>
The reason why i want to do this is because, 102 is a higher-end server
and 101 is our old server.<br>
How do i set the priority of the servers?<br>
I'm open to all suggestions.<br>
<pre class="moz-signature" cols="72">-- 
Warm regards,
Jacky Wong


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message