Jump to content


Photo

Index


  • Please log in to reply
1 reply to this topic

#1 anthonyfellows

anthonyfellows
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 11 October 2006 - 02:19 AM

I installed Apache, moved my html files to the directory they need to be in ... Now when I go to the site or http://localhost I get "Index Of" rather than the actual "index.html" file that should be what I see when I go to the site ... What needs to be changed so that I can view the actual contents of that "index.html" file?  I attached a JPG to this post in case you don't know what I mean by "index of".

Thanks

[attachment deleted by admin]

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 11 October 2006 - 12:57 PM

open up the httpd.conf and find the following line:
# same purpose, but it is much slower.
#
DirectoryIndex
After where it says DirectoryIndex there should be a lists of index.(extension here). Check to see if index.html is in that list or if you use .htm as the file extensions check that index.htm is in the list. If index.html or index.html is not in that list then add them in, making sure you add a spaces between them eg:
DirectoryIndex index.html index.html.var index.php index.htm

Save the httpd.conf and restart the Apache server for the changes to be made.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users