VDS Sphera Knowledge Base
| Main / Browse Categories / Apache / What is the default web page for my site? |
What is the default web page for my site?
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.cfHowever, 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.htmHowever, 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.htmOnce you have done this and saved your httpd.conf file you must restart Apache. You can run the SSH command: /www/bin/apachectl restart
User Comments
|
||||||||
Attachments
| No attachments. |
Related Articles


