strace on httpd and .htaccess directories looked at

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

 



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

[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