KnowledgeBase Glossary    Contact Us
Browse by Category KnowledgeBase .: New Setup Issues .: Why is my index.htm file not displaying?

Why is my index.htm file not displaying?

This problem is likely due to a misconfiguration in the directory index directive.

In your Apache configuration file (/etc/httpd/conf/httpd.conf) the DirectoryIndex directive gives the web server a list of files to look for if you do not specifically reference a file name. The first file in the list that exists will be loaded. The default DirectoryIndex directive is:

DirectoryIndex index.html index.shtml index.html.var index.php

If your index file is index.htm, it is not listed in this directive and will not be displayed.

You can resolve this issue two ways: Either add "index.htm" to the DirectoryIndex command (then restart the web server) or change the name of your index.htm file to index.html.

How helpful was this article to you?

Related Articles

article Can I change the default starting file for my website (i.e. index.php instead of index.html)?
The easiest way is to simply rename or remove...

  7-24-2005    Views: 29452   
article How can I stop file directory listings?
The easiest way to stop the directory indexing...

  7-22-2005    Views: 11664   
article How do I edit my hosts file in Windows?
To view your domain before you update your...

  8-6-2005    Views: 438302   

User Comments

No comments have been posted.

.: Powered by Lore 1.5.4
Copyright 2005-2014 Advantagecom Networks, Inc. - Xen Linux Virtual Private Servers (VPS) - Paypal Accepted