Welcome, Guest. [ Log In ]
Question   What is your DirectoryIndex setting?
Search KBase


Top 2 in this Area:
1. What is your DirectoryIndex setting?
2. What is the standard Directory listing you use in your virtualhost apache configuration file?

 
What is your DirectoryIndex setting?
The DirectoryIndex command lists all the files Apache should look for (in order) to determine what to display when somebody goes to a URL for a directory. That is, it'ss the default file name for your web site. Ours is set to:

DirectoryIndex index.html index.shtml index.htm Index.html Index.htm Index.shtml default.htm Default.htm default.html Default.html default.shtml Default.shtml page1.html index.pl index.cgi index.php index.php3 index.phtml home.htm home.html home.shtml index.wml

As long as you name your "index" file any one of those things, it will work!

If you have two files with names from that list, Apache will show the one that shows up first (e.g. index.html will show up, even if you have an index.php file in the same directory).

You can change your own DirectoryIndex setting to be anything you'd like via an .htaccess file too!

Last updated: Jan 03, 2005.