You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ur...@sat.net.pk on 2002/01/09 22:32:31 UTC

somthing about .htaccess

hello...!

i have put .htaccess in DOCUMENTROOT so it means it applied on every file and subdirectoy under the document root.
What if i want that there is a subdirectory in documentroot in which that .htaccess file will not work and that subdirectory will open without any username password.
So how to work this out...???

And in document root i put >>> AllowOverride All
and if in any subdirectory i put >>> AllowOverride None
what will be its effect...as i think it has no effect.
wat do u think...???

regards

_FaiSaL_

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


RE: somthing about .htaccess

Posted by Joshua Slive <jo...@slive.ca>.
> From: urz.faisalm@sat.net.pk [mailto:urz.faisalm@sat.net.pk]

> i have put .htaccess in DOCUMENTROOT so it means it applied on
> every file and subdirectoy under the document root.
> What if i want that there is a subdirectory in documentroot in
> which that .htaccess file will not work and that subdirectory
> will open without any username password.
> So how to work this out...???

In general, this can't be done.  Once you have applied a directive to a
directory, it will also apply to all subdirectories.  However, there are
many special cases where you can override the original configuration in a
subdirectory.  Here is an example that may be useful in your case (you can
put these in .htaccess files rather than directory sections if you wish):

<Directory /a/b/c>
require valid-user
</directory>

<Directory /a/b/c/d>
Satisfy Any
Allow from all
</Directory>

Joshua.


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org