Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 66296 invoked by uid 500); 18 Aug 2003 14:02:53 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 66223 invoked from network); 18 Aug 2003 14:02:52 -0000 Received: from itesec.hsc.fr (192.70.106.33) by daedalus.apache.org with SMTP; 18 Aug 2003 14:02:52 -0000 Received: from fd.hsc.fr (itesec.hsc.fr [192.70.106.33]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "fd.hsc.fr", Issuer "HSC CA" (verified OK)) by itesec.hsc.fr (Postfix) with ESMTP id 7EE1821053 for ; Mon, 18 Aug 2003 16:02:51 +0200 (CEST) Received: by fd.hsc.fr (Postfix, from userid 1000) id 4E3BC23CAA; Mon, 18 Aug 2003 16:00:03 +0200 (CEST) Date: Mon, 18 Aug 2003 16:00:02 +0200 From: Franck Davy To: users@httpd.apache.org Message-ID: <20030818140002.GA12130@hsc.fr> References: <31C273EB0F086643A6230CB0EBE5D3DD0137CB7C@vifrint5.virtual-identity.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <31C273EB0F086643A6230CB0EBE5D3DD0137CB7C@vifrint5.virtual-identity.net> User-Agent: Mutt/1.5.3i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] mod_rewrite / mod_jk * hans huber [18/08/03 - 15:07]: > Hello, Hello, [...] > Is there a way of moving up the rewrite engine in the priority so that > it is executed before mod_jk comes is involed? Or do you know another > way of achieving my needs? (It would work with a 302 Redirect, but I > wouldn't like that very much ). As a third-part module, mod_jk is by default the last module to be loaded at runtime by Apache, and, as a consequence, the first active module for the URI-to-Filename hook (added last -> executed first). In order to enable mod_rewrite's processing, you have to add mod_jk _before_ mod_rewrite in your http.conf file. For instance, you can use the AddModule directive to change modules' loading order at runtime : 8< ------------------------------------------ ClearModuleList AddModule mod_env.c [...] AddModule mod_cgi.c AddModule mod_alias.c AddModule mod_jk.c # <--� AddModule mod_rewrite.c # | AddModule mod_access.c # | [...] AddModule mod_setenvif.c # | AddModule mod_ssl.c # | # AddModule mod_jk.c # ---� 8< ------------------------------------------ Then, you can rewrite URI with mod_rewrite engine, using the PT flag (important!) - standing for PassThrought (see mod_rewrite doc. for further details) - and finally have it processed by mod_jk : 8< -------------------------------------------------------- [...] RewriteEngine On RewriteLogLevel 3 RewriteLog /var/log/apache/rewrite.log RewriteRule ^/app/$ /app/index.html [PT] JkMount /app/* ajp13 [...] 8< -------------------------------------------------------- Regards, -- Franck Davy --------------------------------------------------------------------- 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