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:

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>


CategoryHtmlProgramming CategoryJava

HtmlProgramming/how-do-i-get-my-html-page-to-load-automatically (last edited 2015-08-23 14:37:53 by wilhelms)