VDS Sphera Knowledge Base

Main / Browse Categories / Apache / What is the default web page for my site?

Print article Print Article    Email article Email Article

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.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

User Comments
What is the default web page for my site?  
There are no user comments for this topic.
 

Attachments
No attachments.

Related Articles
 Where is the Apache httpd.conf file located?
 How do I restart Apache?
 How can I create a Script Alias in Apache to Neomail?
 How can I prevent Directory Listing?
 How do I prevent hot linking of my pictures, movies, or other files?

Why Choose Our Hosting?

  • Unmatched Customer Support!
  • Virtual Private Server technology provides a rich, dedicated-like environment for every account.
  • We are known for our superb quality, performance and flexible hosting environment. We manage the server, software, and network you do the rest.
Continue reading »

Featured Hosting Plan


Learn more about our VPS Extreme

What is Included?

  • PHP 5/MySQL 5
  • Parallels® Plesk Panel 10
  • Unique IP Address
  • Daily VPS Backups (Off Server)
  • SAS Hardware Raid diskspace
  • CentOS 5 x86_64 bit
  • Multi-homed Tier 1 Bandwidth
  • Full Upgrade capabilities
Continue reading »