Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 94457 invoked from network); 27 Sep 2006 15:08:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2006 15:08:50 -0000 Received: (qmail 2989 invoked by uid 500); 27 Sep 2006 15:08:41 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 2970 invoked by uid 500); 27 Sep 2006 15:08:41 -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 2951 invoked by uid 99); 27 Sep 2006 15:08:41 -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:08:41 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=chrishane@gmail.com; spf=unknown X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE Received-SPF: unknown (idunn.apache.osuosl.org: domain gmail.com does not designate 64.182.153.89 as permitted sender) Received: from [64.182.153.89] ([64.182.153.89:52399] helo=mail.itsolut.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 80/40-28186-4F39A154 for ; Wed, 27 Sep 2006 08:08:37 -0700 Received: by mail.itsolut.com (Postfix, from userid 5004) id C244163FB5; Wed, 27 Sep 2006 10:08:33 -0500 (CDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pan.itsolut.com X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.1 Received: from [192.168.0.197] (host-69-95-111-118.cwon.choiceone.net [69.95.111.118]) by mail.itsolut.com (Postfix) with ESMTP id BD65963F04 for ; Wed, 27 Sep 2006 10:08:32 -0500 (CDT) Message-ID: <451A93EE.50607@gmail.com> Date: Wed, 27 Sep 2006 11:08:30 -0400 From: Chris Hane User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [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 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