This is a discussion on Deny access to all directories named "CVS"? within the Apache Web Server forums, part of the Web Server and Related Forums category; Can someone give an example of how to deny access to all directories named "CVS" that may exist ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Can someone give an example of how to deny access to all directories
named "CVS" that may exist in a site using a single .htaccess in the site's root? If it's also possible to specify that this particular directive is not to be overriden by nested .htaccess files, it would be helpful to know how to do that, too. Thanks, Jamie |
|
|||
|
On Thu, 01 Apr 2004 14:26:06 -0500, Jamie Jackson
<mcsqueebagePleaseDontSpamMe@hotmail.com> wrote: >Can someone give an example of how to deny access to all directories >named "CVS" that may exist in a site using a single .htaccess in the >site's root? > >If it's also possible to specify that this particular directive is not >to be overriden by nested .htaccess files, it would be helpful to know >how to do that, too. > >Thanks, >Jamie Got the first part solved with: <Directory ~ ".*/CVS"> Options None AllowOverride None Order allow,deny Deny from all </Directory> Could still use help in preventing this directive from being overridden. Thanks, Jamie |
|
|||
|
Jamie Jackson <mcsqueebagePleaseDontSpamMe@hotmail.com> wrote:
> Can someone give an example of how to deny access to all directories > named "CVS" that may exist in a site using a single .htaccess in the > site's root? ....can't you just DELETE those directories? What are those there for? A nice find . -type d -name "CVS" -exec rm -fr {} \; looks faster. Davide -- | It is easier to get forgiveness than permission. | | | |