Forum Moderators: mack

Message Too Old, No Replies

httpd config file for Apache

Index page looks like file structure

         

catluvr

1:32 pm on Aug 16, 2005 (gmt 0)

10+ Year Member



When I bring up my website, instead of the index.htm page opening, I get index of/ and a listing of all my website files. In httpd config, the directory is pointing to my index.htm page. I don't know what to do! Can someone please help?

mack

2:33 pm on Aug 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



In your httpd.conf file you need to specify what files apache will handle as a folder "index"

I may be wrong but I belive the standard set up allows for index.html not .htm

Try renaming your index file to index.html just to check if this works. If the file is then handled as the folder index then you know this is the problem.

You then need to add the file extensions you want to http.conf I strongly recomend backing this file up before you edit it at all.

Here is the section from my httpd.conf


#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3
</IfModule>

Hope this helps.

Mack.

catluvr

3:44 pm on Aug 16, 2005 (gmt 0)

10+ Year Member



Mack,
You are my hero. All I needed was a little ole "l" on the end of htm and presto, I'm back in business. I'm printing this out for future reference.

Thanks for being there for me!

mack

3:52 pm on Aug 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Glad it worked. :)

Mack.