httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brent Clark <>
Subject [users@httpd] Htaccess on in certain directories, but off in sub directories query
Date Thu, 24 Jan 2013 13:46:19 GMT
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", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 30

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

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.


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

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.

Brent Clark

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message