Re: [SLUG] change the defulat document

From: Andrew M Hoerter (amh@pobox.com)
Date: Sun Aug 24 2003 - 23:05:42 EDT


On Sun, 24 Aug 2003, pwgrant wrote:

> how to I change the default document for apache to index.php4

Edit your Apache configuration file, and search for a line that probably
looks like this:

DirectoryIndex index.html

Change it to:

DirectoryIndex index.php4 index.html

This will display an index.php4 file by default if it exists, or an
index.html otherwise.

Obviously, if you use vhosts or special directory rules in your Apache
config, you will need to be sure you are editing the right DirectoryIndex
line. Also, make sure you have a handler set up for PHP files, otherwise
it'll likely just display the PHP file verbatim. The latter should be
detailed in the PHP documentation.

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:34:07 EDT