From dePoPo.net

How to add aditional default documents to apache

Posted in: Linux
By dePoPo
Mar 10, 2009 - 12:42:39 PM

A: How to add aditional default documents to apache

By default, the Qube uses index.html. To add other pages as index documents, do the following;

pico -w /etc/httpd/conf/httpd.conf

add DirectoryIndex index.html index.php default.asp

ctrl-x to exit, and save

type; /etc/rc.d/init.d/httpd restart

 

Example section:

#
# 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 index.php


© Copyright 2010 by dePoPo.net