US: (831) 440-7361
India: +919830271197
We Create Websites We Market Websites

Generating 403 errors from Document root

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 :)”

Monday, August 21st, 2006 PHP

5 Comments to Generating 403 errors from Document root

  • Rajesh says:

    “a technical geek by choice and management guru by profession.”

    he is very lucky….. that he is doing what’s he loves most……..

    sometimes i really get frustated with my job but i’ve no choice….coz of some personal problem i got stick with this kind of Job…
    and even though I’m not any guru by my profession…..

    i wish one day i will be like MR. Vikas Kedia…. i don’t when that day will come…. or i’ll be like this doing what i hate most….

  • Rajesh says:

    Right now my brain is generating Error 403 coz there is absence of index file(peace of mind) in document root(my mind)

  • AjiNIMC says:

    he made himself lucky by working harder. He still works over 80 hrs per week.

  • Jessi says:

    May be I can ask you more about it someday.

  • Prabhat says:

    Once You removed or make comment
    # LoadModule autoindex_module modules/mod_autoindex.so module
    you also need comment all dependencies of it like
    # IndexOptions FancyIndexing VersionSort NameWidth=* as it needed the above module.
    # AddIconByEncoding AddIconByType AddIcon DefaultIcon ReadmeName HeaderName IndexIgnore

    Now your apache is error free.

  • Leave a Reply

    Get a Custom Quote & Free Website Review (Report includes 200+ keywords, ranking & more - worth $200)