Posted by Anonymous on 07/27/06 12:57
Jerome wrote:
>
> How can I get a server to show index.php as it would index.html? When I
> save index.php it just shows the directory, I'm administrator of an
> Apache Server and I'm not of a (I think, it's what www.awardspace.com
> uses) a goDaddy server. Can anyone help me with this? Can it be done?
That's easy. Find your Apache config directory, edit the file httpd.conf
and look for DirectoryIndex. It will look like this:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var
Just change the last line to:
DirectoryIndex index.html index.php index.html.var
[Back to original message]
|