httpd-users mailing list archives

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

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

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

<FilesMatch ".*">
Allow from all

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.



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