Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 98075 invoked from network); 16 Feb 2006 21:06:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Feb 2006 21:06:52 -0000 Received: (qmail 90839 invoked by uid 500); 16 Feb 2006 21:06:39 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 90830 invoked by uid 500); 16 Feb 2006 21:06:39 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 90819 invoked by uid 99); 16 Feb 2006 21:06:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2006 13:06:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [216.148.227.151] (HELO rwcrmhc11.comcast.net) (216.148.227.151) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2006 13:06:35 -0800 Received: from 1321.org ([67.168.63.0]) by comcast.net (rwcrmhc11) with ESMTP id <20060216210613m1100pn156e>; Thu, 16 Feb 2006 21:06:13 +0000 Received: from 1321.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id C36212C87C for ; Thu, 16 Feb 2006 13:05:23 -0800 (PST) Received: by 1321.org (Postfix, from userid 1000) id B2A372C87D; Thu, 16 Feb 2006 13:05:23 -0800 (PST) Date: Thu, 16 Feb 2006 13:05:23 -0800 To: users@httpd.apache.org Message-ID: <20060216210523.GA5851@1321.org> References: <000b01c63329$809a9d50$0301a8c0@dwfa.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000b01c63329$809a9d50$0301a8c0@dwfa.ca> User-Agent: Mutt/1.5.9i From: ian@1321.org (Ian Shafer) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on bowie X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.7 required=5.0 tests=ALL_TRUSTED, NORMAL_HTTP_TO_IP autolearn=failed version=3.0.4 Subject: Re: [users@httpd] Proxying and load balancing X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Check out the proxyHost and proxyPort XML attributes on this page: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html Basically, you need to set these to your load balancer. Then clients will always go through the load balancer. Ian On 0, Douglas WF Acheson did scribble: > Hello, > > I am trying to set up httpd (v2.2.0) as a load balancer (for development testing, poc stuff) using the mod_proxy_balancer (and appropriate dependencies). I am fronting a J2EE applications running under tomcat 5.5.15 on two machines. > > I seem to have it working for the most part, but am confused by a couple of things: > > 1. The URL in the web browser changes when I access the LB, that is the LB actually does a client side redirect: > For example the URL I use is > 192.168.1.1:8080/myProject > but when the page renders, the URL is now > 192.168.1.2:8080/myProject > or > 192.168.1.3:8080/myProject > > What I want to achieve is, have the URL remain in the context of the LB/proxy (or reverse proxy), so that if machine 1 goes away the LB can redirect to another machine. 'Cause right now the user will have to enter the URL of the LB to get to the app if something fails. > > 2. In the segment below, there is a section "" that seems to be needed. I do not understand why? I crafted this using the examples config files with the install for win32. > > Thx in advance for help ... > > Regards, > Douglas WF Acheson > > > > LoadModule proxy_module modules/mod_proxy.so > > > # > # LoadModule proxy_ajp_module modules/mod_proxy_ajp.so > # > > > LoadModule proxy_http_module modules/mod_proxy_http.so > > > > LoadModule proxy_balancer_module modules/mod_proxy_balancer.so > > > # ---------------------------------------------------------------------------- # > # Define the tomcat load balancer # > # ---------------------------------------------------------------------------- # > > > ProxyRequests off > > > BalancerMember http://192.168.1.1:8080 loadfactor=50 > BalancerMember http://192.168.1.3:8080 loadfactor=50 > Order Deny,Allow > Allow from all > > > > ProxyPass balancer://myCluster stickysession=jsessionid > > > > SetHandler balancer-manager > Order Deny,Allow > Allow from all > > > > ProxyPass balancer://myCluster/myProject > ProxyPassReverse balancer://myCluster/myProject > Order Deny,Allow > Allow from all > > > > > Regards, > Douglas WF Acheson > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See 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 > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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