Click to See Complete Forum and Search --> : Site only displays .php not .html index


Pocket_Aces
08-06-2004, 06:47 PM
Hi everyone,

I don't know how I did this, but my server now only finds .php files. I've spent the last week trying to figure out why my site always came up with the default apache "you may now add content, apache is running" page, and I just figured out it won't find index.htm nor index.html. If I rename the file index.php everything works fine. Also, it WILL display index.html if I specifically type that into the address, in other words: http://mydomain.org gets the default apache page (or an index.php if I choose), but http://mydomain.org/index.html will show the proper index.

Has anyone run into this problem before? I don't know what config file to search for answers, I'm somewhat at my wits end here, any help would be greatly appreciated.

Thanks,
Pocket Aces

bwkaz
08-06-2004, 07:20 PM
Look at the applicable DirectoryIndex option in your httpd.conf file. The first listed DirectoryIndex filename will be used if present.

Pocket_Aces
08-06-2004, 10:07 PM
After a tiny bit of tinkering I got it working with the advice you gave, Thank you very much.

Pocket Aces