Apache:
The DirectoryIndex directive sets the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the directory name.
The default DirectoryIndex looks like this and will search for pages in this order in your DocumentRoot.
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
If you want to use a override this you can set this in your .htacess file. The below entry would set newindex.html as the first page it would match
DirectoryIndex newindex.html index.html index.cgi index.pl index.php index.xhtml index.htm
Tomcat:
- Tomcat uses a welcome-file-list found in $TOMCAT_HOME/conf/web.xml. You can modify this to suite your needs. Below is the default values.
<welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list>