Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 3969 invoked from network); 27 Sep 2006 15:36:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2006 15:36:22 -0000 Received: (qmail 69111 invoked by uid 500); 27 Sep 2006 15:36:11 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 69095 invoked by uid 500); 27 Sep 2006 15:36:11 -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 69084 invoked by uid 99); 27 Sep 2006 15:36:11 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2006 08:36:11 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=salisbury@globe.gov; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain globe.gov from 128.117.91.219 cause and error) Received: from [128.117.91.219] ([128.117.91.219:55076] helo=sam.globe.ucar.edu) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 4E/00-28774-66A9A154 for ; Wed, 27 Sep 2006 08:36:07 -0700 Received: from hamburg (hamburg.globe.ucar.edu [128.117.92.31]) by sam.globe.ucar.edu (Postfix) with SMTP id 13D501D0246 for ; Wed, 27 Sep 2006 09:36:04 -0600 (MDT) Message-ID: <046201c6e24a$a45a5ac0$1f5c7580@globe.ucar.edu> From: "David Salisbury" To: References: <451A93EE.50607@gmail.com> Date: Wed, 27 Sep 2006 09:36:03 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Subject: Re: [users@httpd] Location of rewrite rules when using mod_proxy in 2.2 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Well, you may need Rewrite or you may not.. but for the immediate problem below have you checked into using the ProxyPass directives outside of the VirtualHost blocks? ...something along the lines of ProxyPass /ajp://localhost:8009/ ProxyPassReverse / ajp://domain.com:8009 -ds ----- Original Message ----- From: "Chris Hane" To: Sent: Wednesday, September 27, 2006 9:08 AM Subject: [users@httpd] Location of rewrite rules when using mod_proxy in 2.2 >I am about to upgrade from 2.0 to 2.2. > > Our current configuration is pretty simple. We have a couple of virtual > hosts and are using mod_jk to talk to 3 applications in Tomcat. The > mod_jk rules are not in a VirtualHost but are in the top level of the > http.conf file. This setup allows any domain to use the application. An > example of the configuration is: > > #[jboss] > JkMount /backoffice-demo/faces* worker2 > #[tomcat] > JkMount /backoffice-demo* worker1 > > Since we are moving to 2.2, we decide to move to mod_proxy_ajp. However, > the rewrite rules seem to have to be in a VirtualHost block in order to > work. If we have them at the top level (not in a VirtualHost) block, > they are never executed. Is there a way to have a set of rewrite rules > apply to ALL requests regardless of the requested host domain? > > An example of the rewrite rule is (just in case it makes a difference): > > #[jboss] > RewriteCond %{REQUEST_URI} /backoffice-demo/faces(.*) > RewriteRule ^/(.*) ajp://localhost:9009/$1 [P] > > #[tomcat] > RewriteCond %{REQUEST_URI} /backoffice-local(.*) > RewriteRule ^/(.*) ajp://localhost:8009/$1 [P] > > These work great if there are not any VirtualHosts or if they are in a > VirtualHost. However, we want any domain that this server handles to be > able to use these rewrites. > > TIA, > Chris.... > > > --------------------------------------------------------------------- > 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