Received: (from majordom@localhost) by hyperreal.com (8.8.4/8.8.4) id MAA17086; Sat, 12 Apr 1997 12:00:41 -0700 (PDT) Received: from eastwood.aldigital.algroup.co.uk (eastwood.aldigital.algroup.co.uk [194.128.162.193]) by hyperreal.com (8.8.4/8.8.4) with SMTP id MAA17074 for ; Sat, 12 Apr 1997 12:00:37 -0700 (PDT) Received: from gonzo.ben.algroup.co.uk (gonzo.ben.algroup.co.uk [193.133.15.1]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with SMTP id TAA11728 for ; Sat, 12 Apr 1997 19:00:20 GMT Subject: Re: mod_rewrite and per-dir context To: new-httpd@apache.org Date: Sat, 12 Apr 1997 19:55:45 +0100 (BST) From: Ben Laurie In-Reply-To: <199704121845.UAA10581@en1.engelschall.com> from "Ralf S. Engelschall" at Apr 12, 97 08:45:54 pm X-Mailer: ELM [version 2.4 PL24 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID: <9704121955.aa19943@gonzo.ben.algroup.co.uk> Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Ralf S. Engelschall wrote: > > > In article <199704121759.TAA07505@en1.engelschall.com> you wrote: > > > Some people have seen problems with rewrite rules in per-directory context > > (i.e. actually in .htaccess) files. Currently I discovered a problem, too. > > Seems like a problem between 1.2b7 and 1.2b8. While there was no real changes > > in this way to mod_rewrite between 1.2b7 and 1.2b8 it seems like any other > > changes to Apache cause these problems. > > > Today I have no more time to trace it down but I'll investigate tomorrow. > > Currently it seems like mod_rewrite ignores all its per-directoy configs. > > Where there any changes to the options allow mechanism or such things? Has > > anybody else problems with rewrite rules in .htaccess files, too? > > Although I've limited time today I've traced down the problem a little bit. > The function config_perdir_create(pool *p, char *path) of mod_rewrite in 1.2b7 > always receives a valid directory name of the cases where RewriteRules are > used in .htaccess files. But in 1.2b8 it always receives a NULL. This leads > to a total ignore in the rewrite engine later (which need to know the > directory name). > > Does anyone already know why the API has changed here? Or is the current > behaviour correct and the old beheviour was wrong? How can a module determine > in its per-dir config-create function what the name of the directory is if > "path" is not the correct variable? I'd guess this is a consequence of the major rearrangement someone did recently, I forget who, to the directory walking stuff. It is definitely not supposed to be this way. > > ** At least, why has the API changed at this point? ** To fix a bug. Seems like the fix has its own bugs. Looks like a 1.2b9 is inevitable. Sigh. Cheers, Ben. -- Ben Laurie Phone: +44 (181) 994 6435 Email: ben@algroup.co.uk Freelance Consultant and Fax: +44 (181) 994 6472 Technical Director URL: http://www.algroup.co.uk/Apache-SSL A.L. Digital Ltd, Apache Group member (http://www.apache.org) London, England. Apache-SSL author