Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 2246 invoked by uid 6000); 4 Dec 1997 12:06:47 -0000 Received: (qmail 2230 invoked from network); 4 Dec 1997 12:06:43 -0000 Received: from harley.unix-ag.uni-siegen.de (141.99.42.44) by taz.hyperreal.org with SMTP; 4 Dec 1997 12:06:43 -0000 Received: from doubleshadow.unix-ag.org (isdnb42.hrz.uni-siegen.de [141.99.175.42]) by harley.unix-ag.uni-siegen.de (Mailhost) with ESMTP id NAA27728 for ; Thu, 4 Dec 1997 13:06:06 +0100 Received: (from sfx@localhost) by doubleshadow.unix-ag.org (Mailhost) id NAA00329 for new-httpd@apache.org; Thu, 4 Dec 1997 13:03:09 +0100 Message-ID: X-Mailer: XFMail 1.2-beta-111997 [p0] on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19971204094657.00173@deejai.mch.sni.de> X-PGP-KeyID: F88341D9 Date: Thu, 04 Dec 1997 13:03:09 +0100 (CET) Organization: German Unix-AG Association From: Lars Eilebrecht To: new-httpd@apache.org Subject: Re: NOT A BUG!!! New Function: SearchRules for Alias/ScriptAlias Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org According to Martin Kraemer: > > > So if the script is modified for the customer it can be placed into > > > '/users/www/customer-bin/' the rest leave in '/users/www/default-bin/' > > > > This is also possible with mod_rewrite I think. > > A search path with several alternatives? How could that be done with > mod_rewrite? Could we add that to the docs? Something like this might work... RewriteCond /usr/local/apache/customer-bin/%{REQUEST_URI} -F RewriteRule ^/(.+) /usr/local/apache/customer-bin/$1 [L] RewriteCond /usr/local/apache/default-bin/%{REQUEST_URI} -F RewriteRule ^/(.+) /usr/local/apache/default-bin/$1 [L] ciao... -- Lars Eilebrecht - Don't hate yourself in the morning sfx@unix-ag.org - ...sleep till noon. http://www.si.unix-ag.org/~sfx/