Web Hosting Talk







View Full Version : Making index.htm an index page


NVB
08-12-2001, 11:13 PM
My server only recognizes index.html files as directory index's. I would like it also recognize index.htm and index.shtml files.

How do I configure the server to recognize index.htm files as indexes?

Chicken
08-12-2001, 11:20 PM
This would seem odd, but...

In srm.conf :

# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.

DirectoryIndex index.html index.htm index.shtml ...

davidb
08-12-2001, 11:36 PM
Also if you are running a newer version of apache, they now combine the files, so if you dont have srm.conf, add it too httpd.com

NVB
08-13-2001, 11:36 AM
Thanks, for the help. My server has both an srm.conf and an httpd.conf The srm.conf is an empty file and the httpd.conf is a long 43 KB file. A representative from tech support was able to get it to work by changing the line

<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>

in httpd.conf to

<IfModule mod_dir.c>
DirectoryIndex index.htm index.html
</IfModule>