Web Hosting Talk







View Full Version : Setting up different default pages


SuperDon
11-06-2001, 02:37 PM
Hi,

How do i go about configuring an account to use index.pl as the default page rather than index.html?

I am running CPanel and Redhat 7.1

Cheers.

erik
11-07-2001, 01:30 AM
I am not familiar with Cpanel, but you can do this in your
httpd.conf. Open httpd.conf and search for "DirectoryIndex".

Just add index.pl to the end of that line. (The first one on
this list has the highest priority.)

Example:

# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.cgi index.phtml

SuperDon
11-07-2001, 04:13 PM
Thanks very much!