You use the DirectoryIndex directive to define the index (default) file to serve when / is requested
DirectoryIndex index.html index.htm index.php
The above directive will tell apache to search, in order, for index.html, index.htm, and then index.php. It will display the first match it finds. If none is found it will send a 403 (forbidden) error unless you have Option +Indexes enabled (you generally don't want to enable that)
Also note: if you want to use .htaccess to enable this rather than the .conf files, you need to enable AllowOverride in the .conf file(s)
Last edited by KimVette; 01-03-2006 at 10:39 PM.
|