httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jackywong@webnic.cc" <jackyw...@webnic.cc>
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">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1">Dear all,<br>
<br>
In our environment, we are using 1 apache server and load balanced to 2
resin servers (all in different machines).<br>
<br>
A snippet of our apache httpd.conf:<br>
<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="https://some.domainname.com/$1">https://some.domainname.com/$1</a>
[L,R]<br>
&nbsp; DocumentRoot /www/app01<br>
&nbsp; ServerName svr01<br>
&nbsp; DirectoryIndex index.jsp<br>
&nbsp; ResinConfigServer 192.168.11.101 6802<br>
&nbsp; ResinConfigServer 192.168.11.102 6802<br>
&nbsp; CauchoStatus yes<br>
<br>
&nbsp; # do not remove, otherwise apache will serve the jsp source code once
resin is down<br>
&nbsp; AddHandler caucho-request .jsp<br>
&lt;/VirtualHost&gt;<br>
<br>
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.<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>
<br>
I'm open to all suggestions.<br>
Thanks.<br>
</font>
<pre class="moz-signature" cols="72">-- 
Warm regards,
Jacky Wong

</pre>
</body>
</html>

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


Mime
View raw message