i got a problem on my apache server it doesnt load automatically the index.html but in index.php it works fine i have this configuration on httpd.conf, i am running it on my local computer using windows 7

i tried this configuration

<IfModule dir_module>
    DirectoryIndex index.html, index.php

but i dont have a luck

i also tried like this one

<IfModule mod_dir.c>
    DirectoryIndex index.html, index.php

but just the same

please help me about this, thank you

This should work:

DirectoryIndex index.html index.php

Try without the IfModule first.

still got no luck

the index.html still not loading automatically

no comma between index.html and index.php

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.