Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 15801 invoked from network); 17 Oct 2005 08:31:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2005 08:31:54 -0000 Received: (qmail 28406 invoked by uid 500); 17 Oct 2005 08:31:15 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 28140 invoked by uid 500); 17 Oct 2005 08:31: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 27492 invoked by uid 99); 17 Oct 2005 08:31:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 01:31:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of krist.vanbesien@gmail.com designates 64.233.184.193 as permitted sender) Received: from [64.233.184.193] (HELO wproxy.gmail.com) (64.233.184.193) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 01:26:28 -0700 Received: by wproxy.gmail.com with SMTP id i20so432679wra for ; Mon, 17 Oct 2005 01:26:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=klVXoD76ACESubenKz+YZNW4zMuXGqKelnmjfhvFn4EcgxHqhbMiWuUwhBQNpatu0XevqCgiDrUyeJUFDjqakfp08MC5mP2wX3iKyq4z45T+Q0tBp071yRX9mT8JxmHf5mhAxsmIhUQ3dFVWufTDee4v9yN6OBwGdBqysopV/YE= Received: by 10.54.68.2 with SMTP id q2mr1655149wra; Mon, 17 Oct 2005 01:26:06 -0700 (PDT) Received: by 10.54.83.12 with HTTP; Mon, 17 Oct 2005 01:26:06 -0700 (PDT) Message-ID: <6ed6382b0510170126u2b7636b4i41b0887dab95d515@mail.gmail.com> Date: Mon, 17 Oct 2005 10:26:06 +0200 From: Krist van Besien To: users@httpd.apache.org In-Reply-To: <001c01c5d16c$24ac4530$6500a8c0@LarsDell> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <001c01c5d16c$24ac4530$6500a8c0@LarsDell> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Apache 2: mod_rewrite X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 10/15/05, Lars Ohl=E9n wrote: > So the same script (ex TheServlet) needs to be accessed both using the UR= L > > /webapp/servlet/TheServlet and > /script/servlet/TheServlet > > The easy solution is of course to duplicate the webapp and to create an > additional script web application with the same scripts. But > this is not very good from a maintance point of view (needs to duplicate > many scripts and helper classes) > > But could this not be solved using mod_rewrite? > > Simpy to map /script to /webapp > > Preferably we would like to control each indivdual script and to have > mod_rewrite to append some extra information so that the > script could (if needed) identify if the invocation was from a script of > from a webapp user. Something like RewriteEngine On RewriteRule /script/servlet/(.*) /webapp/servlet/$1?script=3Dyes [QSA= ] maybe? Krist -- krist.vanbesien@gmail.com Solothurn, Switzerland --------------------------------------------------------------------- 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