The following reply was made to PR config/1649; it has been noted by GNATS.
From: Marc Slemko <[EMAIL PROTECTED]>
To: Aidas Kasparas <[EMAIL PROTECTED]>
Cc: Apache bugs database <[EMAIL PROTECTED]>
Subject: Re: config/1649: .htaccess is searched UNDER DocumentRoot
Date: Tue, 20 Jan 1998 08:06:21 -0700 (MST)
On Tue, 20 Jan 1998, Aidas Kasparas wrote:
> > I'm confused about why you don't just use "AllowOverride none" as I
> > suggested before.
> >
> > <Directory />
> > AllowOverride None
> > </Directory>
> > <Direoctory /whatever/path>
> > AllowOverride whateveryouwant
> > </Directory>
> > ... and so on.
>
> This will not do what I want. If we have document root at
> /doc/root/dir and I ask for document /blah/blah/blah.html in standard way
> it will do
>
I'm sorry, why won't it do what you want? I don't understand the problem.
If you set AllowOvrride None it will not look for htaccess files. Only
set some other AllowOverride for paths inside your documentroot or
wherever else you want to serve files.
> stat("/doc/root/dir/blah/blah/blah.html");
> open("/.htaccess");
> open("/doc/.htaccess");
> open("/doc/root/.htaccess");
> open("/doc/root/dir/.htaccess");
> open("/doc/root/dir/blah/.htaccess");
> open("/doc/root/dir/blah/blah/.htaccess");
>
> And I want it did:
> stat("/doc/root/dir/blah/blah/blah.html");
> open("/doc/root/dir/.htaccess");
> open("/doc/root/dir/blah/.htaccess");
> open("/doc/root/dir/blah/blah/.htaccess");
> which is shorter by 3 sys calls.
<Directory />
AllowOverride None
</Directory>
<Directory /doc/root/dir>
AllowOverride whatever-you-want
</Directory
>
> >
> > The problem with trying to guess where the documentroot is is that I'm not
> > convinced you will always get it right.
>
> Well. Hack alone can't reliably do that. But modules that maps
> URIs to filenames knows that info for sure. Why don't ask them to share
> this information with those that checks access?
>
>
> Aidas
>