Re: Disabled directory listing, but I got 404 instead of 403

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

 



On November 16, 2011 13:26 , Torok Peter <netmano88@xxxxxxxxx> wrote:
I have disabled directory listing in my Apache Apache/2.2.21 (Debian) with Options -Indexes in the /etc/apache2/apache2.conf Now if I navigate to a link which gave directory litsing earlier (eg. www.somesite.com/dir1 <http://www.somesite.com/dir1>, where dir1 does exist), I got a 404 error. I thought (but haven't found in docs), that in this case I should have a 403 - Forbidden, error.
Now all of there directory listing requests fills my 404 logs.

When you request a directory, Apache HTTP Server will automatically look for the list of resources specified by the DirectoryIndex directive (for example, index.html, index.php). 404 means that none of those resources were found.

You can try not loading mod_dir (assuming that it is not statically compiled into your copy of httpd) and see if that changes things.

--
  Mark Montague
  mark@xxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
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