httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Wilson <>
Subject Re: [users@httpd] Nesting the Files section in httpd.conf
Date Tue, 13 May 2003 14:40:25 GMT
Hash: SHA1

On Tuesday 13 May 2003 14:58, sjm wrote:

> "...Note that <Files> can be nested inside <Directory> sections to restrict
> the portion of the filesystem they apply to."
> 	--

Yep, Zac just pointed this out. You're both quite right. It does appear that 
they're nestable. I've never used them that way, hence my original reply. And 
if it was nested inside the directory you think it would resolve against the 
directory path, as the doc suggest.

> I am now using this:
> <Directory /var/www/html/sitename/maint/users/>
>      AllowOverride AuthConfig
> </Directory>
> <Files /var/www/html/sitename/maint/users/protected.file>
>      AuthType Basic
>      AuthName "Protected File"
>      AuthUserFile /path/to/.htpasswd
>      Require user user_name
> </Files>
> and it doesn't work either.

Forgive me if I'm being patronising; do you have the above enclosed in an 
<IfModule ...> directive? And when you say it doesn't work, does apache start 
OK with no complaints but just not respond in the manner you expect?


- -- 
Will Wilson					

Applied Generics Ltd
Pentlands Science Park
Bush Loan, Penicuik
Scotland, EH26 OPZ		
Tel: +44 870 240 3694				
Fax: +44 870 706 5818				
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message