httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hayles, S." <s...@leicester.ac.uk>
Subject [users@httpd] Is per file configuration easily possible?
Date Thu, 20 Apr 2006 13:18:09 GMT
Hi

If I have an index.html in directory xxx that I want to be accessible
only from the yyy domain I know that I can use something like:

<Files index.html>
Order Deny,Allow
Deny from all
Allow from yyy
</Files>

in a .htaccess file or enclosed in <Directory xxx> ... </Directory> in
the main configuration. However, it will block access to every
index.html from this directory down, until told not to. To stop this
configuration from propagating down the directory tree, I need something
like:

<FilesMatch ".*">
Allow from all
</FilesMatch>

for all contained directories.

Is there any better way to associate configuration with a single file?

The reason I ask is that I'm porting an existing site developed using
Netscape/iPlanet/Sun serving software, where many directories contain
.nsconfig files to provide per file access control.

Thanks

Steven

---------------------------------------------------------------------
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