Re: Htaccess on in certain directories, but off in sub directories query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rwad about "Satisfy any"

On 25/01/2013 12:46 AM, "Brent Clark" <brentgclarklist@xxxxxxxxx> wrote:
Good day

I currently have .htaccess on by default in my apache config.

As a result, if you do a strace, you see the following example.

stat64("/var/www/vb/css/dhtml_menu.css", {st_mode=S_IFREG|0644, st_size=10025, ...}) = 0
open("/var/www/.htaccess", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/var/www/vb/.htaccess", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/var/www/vb/css/.htaccess", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/var/www/vb/css/dhtml_menu.css/.htaccess", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = -1 ENOTDIR (Not a directory)
open("/var/www/vb/css/dhtml_menu.css", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 30

I would like to look to minimizing all these look ups for a non existing file.

I unfortunately cannot disable htaccess all together, for I need htaccess to do various tasks in various locations.

I did a quick find to locate all my htaccess's.

/var/www/news/.htaccess
/var/www/blogs/.htaccess
/var/www/classifieds/data/11/thumbs/.htaccess
/var/www/general/.htaccess
/var/www/nephp/.htaccess
/var/www/photos/data/.htaccess
/var/www/vb/clientscript/ckeditor/.htaccess
/var/www/events/.htaccess

The question I would like to ask is. If I set 'AllowOverride None' for /var/www.
How would I enable for, say. '/var/www/news/', but not all its sub directories.

I hope I have explained my situation and question clearly, but if not, please dont hesitate to ask me to rephrase.

Thank you if you can help.

Regards
Brent Clark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux