I wanted to generate a 403 error at the document root in absence for Document Index files (index.html and index.php). I tried various things with no success. Even the other team programmers asked this question at various forums, they all got the same suggestions:-
- This looks like a .htaccess problem, check your .htaccess carefully, or
- Check the Document Index.
- Check the â€œOptions Indexesâ€ properly.
These were the responses I was getting and rightly so as these can be some possibilities as well. Even after all these work I could not make it work. I then decided to approach my boss (a technical geek by choice and management guru by profession). He then asked me to remove the following like from the httpd.conf LoadModule autoindex_module modules/mod_autoindex.so and it worked. I certainly need to do some more study to understand this module better. In case someone like me in urgent need of a hint can get it through this blog post.
“Do not forget to restart the Apache server :)”