Results 1 to 4 of 4
Thread: Making index.htm an index page
-
08-12-2001, 11:13 PM #1Junior Guru Wannabe
- Join Date
- May 2001
- Posts
- 97
Making index.htm an index page
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?
-
08-12-2001, 11:20 PM #2Web Hosting Master
- Join Date
- Jun 2000
- Location
- Southern California
- Posts
- 12,136
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 ...
-
08-12-2001, 11:36 PM #3A#* Duke Of New York
- Join Date
- Jun 2001
- Location
- Chicago, IL
- Posts
- 1,953
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
-
08-13-2001, 11:36 AM #4Junior Guru Wannabe
- Join Date
- May 2001
- Posts
- 97
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>