Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 52589 invoked from network); 16 Nov 2006 16:03:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2006 16:03:58 -0000 Received: (qmail 79471 invoked by uid 500); 16 Nov 2006 16:04:03 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 79405 invoked by uid 500); 16 Nov 2006 16:04:03 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 79394 invoked by uid 99); 16 Nov 2006 16:04:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 08:04:03 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.133.199.10] (HELO jimsys.jagunet.com) (209.133.199.10) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 08:03:48 -0800 Received: from [127.0.0.1] (localhost [127.0.0.1]) by jimsys.jagunet.com (Postfix) with ESMTP id E3AD8235FB7; Thu, 16 Nov 2006 11:03:27 -0500 (EST) In-Reply-To: <45476496.2070403@ptc.com> References: <200610281526.k9SFQgJ00069@devsys.jaguNET.com> <4544BCB4.5070105@apache.org> <4544C5AD.5090007@ptc.com> <4544CAB7.6060500@apache.org> <4FDC96FA-CC1E-4CD4-B68C-1E4D578C3FD4@jaguNET.com> <45476496.2070403@ptc.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: "Wang, Andy" Content-Transfer-Encoding: 7bit From: Jim Jagielski Subject: Re: [Fwd: Re: Apache 2.2.3 mod_proxy issue] Date: Thu, 16 Nov 2006 11:03:27 -0500 To: dev@httpd.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org On Oct 31, 2006, at 9:58 AM, Jess Holle wrote: > Jim Jagielski wrote: >>>> >>>> Sounds good. >>>> >>>> On a related note, our practice with mod_jk is to route only *.jsp, >>>> /servlet/*, and a few other URL patterns to Tomcat and let >>>> Apache handle >>>> everything else. We also want to support load balancing with >>>> sticky >>>> sessions, of course. >>>> >>>> That combination is pretty easy and straightforward with >>>> mod_jk. It has >>>> been *baffling* with mod_proxy_ajp. Perhaps we just haven't >>>> spent long >>>> enough on mod_rewrite, etc, but so far we're not getting >>>> anywhere... >>> How about >>> >>> RewriteEngine On >>> RewriteRule ^(.*\.jsp|/servlet/.*)$ balancer://mycluster$1 [P] >>> >>> >>> ProxySet stickysession=JSESSIONID nofailover=On >>> BalancerMember ajp://1.2.3.4:8009 route=tomcat1 max=10 >>> BalancerMember ajp://1.2.3.5:8010 route=tomcat2 max=10 >>> >> >> Seems to be that we should simply make ProxyPass more >> pattern aware... We don't need a full regex for 95% of >> the cases, and so we'd have a nice faster impl. >> >> Needing to switch to (and load in) mod_rewrite for something >> that the proxy module should do itself seems backwards :) > Agreed. >> By the way, ProxyPass /servlet/ balancer://mycluster >> does the 2nd part of what you want, it's just the >> '*.jsp' stuff we're missing... So basically, >> ProxyPass more JkMount-like... > Gotcha. > By the way, I've really looked at this and it isn't required really to make ProxyPass more regex like since we can leverage Location to do that.