Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 82375 invoked from network); 7 Aug 2006 16:52:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2006 16:52:38 -0000 Received: (qmail 31805 invoked by uid 500); 7 Aug 2006 16:50:34 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 31792 invoked by uid 500); 7 Aug 2006 16:50:34 -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 31753 invoked by uid 99); 7 Aug 2006 16:50:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 09:50:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.67.202.165] (HELO bismuth.webfusion.co.uk) (212.67.202.165) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 09:50:33 -0700 Received: from 87-194-45-130.bethere.co.uk ([87.194.45.130] helo=[192.168.1.65]) by bismuth.webfusion.co.uk with esmtpa (Exim 4.54) id 1GA8It-0004X2-I4 for users@httpd.apache.org; Mon, 07 Aug 2006 17:50:11 +0100 Message-ID: <44D76F45.8010102@pidster.com> Date: Mon, 07 Aug 2006 17:50:13 +0100 From: Pid Reply-To: p@pidster.com User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: users@httpd.apache.org References: <1acb811b0608070652s3bf74ea8k50f7d9fb9b4de804@mail.gmail.com> In-Reply-To: <1acb811b0608070652s3bf74ea8k50f7d9fb9b4de804@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] 2nd try: Load balancing Apache on both HTTP and HTTPS X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Nes Yarug wrote: > Hi all, > > 2nd try to see if anyone can shed some light on my configuration. > > I've been trying to configure Apache's balancer proxy, but have not had any > luck. I've been trying to configure a load balancing proxy that forwards > requests to 2 web servers. I want both http and https requests to be > forwarded. (Actually, the forwarded requests do not need to be https as > they are routed over the LAN) > > A simple picture of what I want: > > Internet HTTP/HTTPS--> > > -------------------------------------- > | Box 1: (Apache) Load balancer | --> > -------------------------------------- > -------------------------- > | Box 2: Web server 1 | > -------------------------- > -------------------------- > | Box 3: Web server 2 | > -------------------------- > > I started with the following configuration in /etc/apache/httpd.conf: > > ProxyPass /awstats ! > ProxyPass /balancer-manager ! > ProxyPass / balancer://mycluster/ stickysession=jsessionid > ProxyPreserveHost On > > > BalancerMember http://192.168.0.2:80 > BalancerMember http://192.168.0.3:80 > > > This worked fine, but ofcourse not for https requests. I then removed the > above configuration from httpd.conf and placed it in the default vhost > configuration at /etc/apache2/vhosts.d/00_default_vhost.conf: > > ProxyPass /awstats ! > ProxyPass /balancer-manager ! > ProxyPass / balancer://mycluster/ stickysession=jsessionid > ProxyPreserveHost On > > > BalancerMember http://192.168.0.2:80 > BalancerMember http://192.168.0.3:80 > > > I then configured the default ssl virtual host simularly > (/etc/apache2/modules.d/41_mod_ssl.default-vhost.conf): > > ProxyPass / balancer://mysslcluster/ stickysession=jsessionid > ProxyPreserveHost On > > > BalancerMember https://192.168.0.2:443 > BalancerMember https://192.168.0.3:443 > > > But now I cannot get my requests to the balancer handled by one of the web > servers (i.e. the request is not forwarded). An http request is > forwarded to > the web servers, but an https request is giving an Internal Server Error. > > https requests seem never been forwarded to the balancer members. I can > see the request coming in on the load balancer, but no requests are > logged by any of the two balancer members. As for http requests I can > see the requests coming in on the load balancer and then in the logs of > one of the two balancer members. > > Can someone please comment on the above configuration and tell me what I'm > doing wrong? comment: stickysession isn't doing anything unless you're running another application or server which manages sessions (e.g. Tomcat). what you're doing wrong: do you have SSL running on those two servers, and can you create a normal request directly to them and does that give you a 500 too? What is the cause of the 500 in the error_log of the proxied servers? > Many thanks, > Nes --------------------------------------------------------------------- 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