You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Ben Laurie <be...@gonzo.ben.algroup.co.uk> on 1996/10/06 13:56:56 UTC

sections

It would appear from the code (and testing) that <Files> sections can be
nested. Is this intended?

Also, is there any documentation for <Files>?

Cheers,

Ben.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.            Apache Group member (http://www.apache.org)

Re: sections

Posted by Alexei Kosut <ak...@nueva.pvt.k12.ca.us>.
On Sun, 6 Oct 1996, Ben Laurie wrote:

> It would appear from the code (and testing) that <Files> sections can be
> nested. Is this intended?

No and yes. No, you're not really supposed to do

<Files /whatever>
AAA
<Files /something/else>
BBB
</Files>
CCC
</Files>

However, you can't use the same check <Directory> and <Location> use,
because they prove false for .htaccess files. However, it doesn't
really hurt anything. The above is interpreted the same as:

<Files /whatever>
AAA
</Files>
<Files /something/else>
BBB
</Files>
<Files /whatever>
CCC
</Files>

(at least, it should be)

> Also, is there any documentation for <Files>?

No, not yet. At least, not that I've written. (I've meant to, but
haven't had a lot of time available lately).

-- 
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us>      The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/   http://www.apache.org/