faqts : Computers : Programming : Languages : PHP : Installation and Setup : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

41 of 41 people (100%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

How do I specify the default document in a directory?
How do I set the index file name for a directory in Apache?

Jun 28th, 1999 04:35
Nathan Wallace, Steven Champeon, Nathan Wallace


In Apache you use the DirectoryIndex directive.  Apache will then search
the directory for the index file in left to right order.  You can
specify the DirectoryIndex in your .htaccess file or in httpd.conf.

DirectoryIndex index.php3 index.html index.htm default.htm

http://www.apache.org/docs/mod/mod_dir.html#directoryindex