Hi all.

I did know that activating .htaccess makes Apache look in all the
subdirectories of the DocRoot (or Vhost) to look for .htaccess files and
allow inheritence for them

But passing strace on the httpd process shows currious things :

Apache seems to look behind the DocRoot as well, here it is :

[assuming DocRoot is "/home/julien/Bureau/ZFBbook/html"]
open("/.htaccess", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
open("/home/.htaccess", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
open("/home/julien/.htaccess", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such
file or directory)
open("/home/julien/Bureau/.htaccess", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/home/julien/Bureau/ZFBook/.htaccess", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
open("/home/julien/Bureau/ZFBook/html/.htaccess", O_RDONLY|O_LARGEFILE) = 9

That is very curious, can someone tell me the "why" and the "how" ?

Thanks.

Julien.P

Reply via email to