Results 1 to 4 of 4
  1. #1

    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?

  2. #2
    Join Date
    Jun 2000
    Location
    Southern California
    Posts
    12,121
    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 ...
    HostHideout.com - Where professionals discuss web hosting.

    Chicken

  3. #3
    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

  4. #4
    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>

  5. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •