httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Wilson <william.wil...@appliedgenerics.com>
Subject Re: [users@httpd] Nesting the Files section in httpd.conf
Date Tue, 13 May 2003 14:40:25 GMT
-----BEGIN PGP SIGNED MESSAGE-----
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."
>
> 	-- http://httpd.apache.org/docs-2.0/mod/core.html#files

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



- -- 
Will Wilson					

Applied Generics Ltd
Pentlands Science Park
Bush Loan, Penicuik
Scotland, EH26 OPZ

william.wilson@appliedgenerics.com		
Tel: +44 870 240 3694				
Fax: +44 870 706 5818				
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+wQPZNAhBZq2mRiYRAqSCAKCzJgyHxkdW/nVkuNXpAEqydWwMTgCgixCL
PUCXEfGaYN+KqbhXicvkECo=
=SUQO
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message