Setting up Apache directory root behavior

Posted by Corey on Super User See other posts from Super User or by Corey
Published on 2011-01-10T21:28:33Z Indexed on 2011/01/10 21:55 UTC
Read the original article Hit count: 169

Filed under:
|

I'm running Apache on a Windows machine for local testing and I'm new to it.

Currently, if I navigate to localhost/ in a web browser, it will display an index.html page if one exists. Otherwise, it will display the directory listing.

  • How can I make it so that navigating to a root directory will display more than index.html? What I need is so that if either: index.html, index.htm, or index.php exist, it will navigate to one of those.
  • How can I disable showing directory roots? I would like it to return a 403 Forbidden error if no index page exists.

© Super User or respective owner

Related posts about windows-xp

Related posts about apache