Hard Hat Hosting - "Virtual Dedicated Server" web hosting

What is the default web page for my site?

Original URL: http://help.hardhathosting.com/question.php/114

There are default pages for your site, here they are in order:

index.html
index.htm
index.shtml
index.php
index.php4
index.php3
index.phtml
index.cgi
index.asp
default.asp
index.mv
default.htm
index.pl
index.py
index.cf
However, you may change these default settings if you edit the /etc/httpd/conf/httpd.conf file in this section:
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.shtml index.php ...
</IfModule>
Once you have done this and saved your httpd.conf file you must restart Apache. You can run the SSH command:
/etc/rc.d/init.d/apachectl restart

Here are the settings if your account was setup before July 1st, 2003:

There are 2 defaults for your site, here they are in order:

index.html
index.htm
However, you may change these default settings if you edit the /www/conf/httpd.conf file in this section:
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm
</IfModule>
All you need to do is add your filename to the DirectoryIndex line like below:
DirectoryIndex index.php index.html index.htm
Once you have done this and saved your httpd.conf file you must restart Apache. You can run the SSH command:
/www/bin/apachectl restart

Back to original article