SimplyWebHosting.com KnowledgeBase Glossary    Contact Us
Search  
   
Browse by Category
SimplyWebHosting.com 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: 25839   
article How can I stop file directory listings?
The easiest way to stop the directory indexing...

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

  8-6-2005    Views: 416829   

User Comments

No comments have been posted.


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