Apache Options -Indexes give me 404 instead of 403, why?

Posted by netmano on Server Fault See other posts from Server Fault or by netmano
Published on 2011-11-15T15:15:11Z Indexed on 2012/11/27 5:09 UTC
Read the original article Hit count: 441

Filed under:
|

I have an Apache/2.2.21 (Debian) webserver, which I disabled directory listing with Options -Indexes but now I got 404 error for a directory, but I think I should get a 403.

I have no idea why I get 404, rather than 403. What should I check?

I have disabled autoindex module, after it I got a 404 for every URL that request a directory listing (eg: www.somesite.com/dir ). How can I get a 403 for this. (The dir does exist)

As a try I also put Options -Index in the end of main config file (apache2.conf).

© Server Fault or respective owner

Related posts about apache2

Related posts about indexes