[thelist] Apache: how do I set the default URL?
Andrew Forsberg
andrew at thepander.co.nz
Thu Feb 14 17:06:22 CST 2002
>I've been getting lost in apache documentation trying to figure out how to
>change the setting... rather than subbing in my own index page, how do I
>set Apache to automatically resolve to a different page?
Open your conf/httpd.conf file and search for 'DirectoryIndex'
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
If you want index.php to be used in preference to index.html add
index.php before index.html:
DirectoryIndex index.php index.html
or put whatever other file name you like in there.
HTH
Andrew
--
More information about the thelist
mailing list