Jump to content

Index


anthonyfellows

Recommended Posts

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]
Link to comment
Share on other sites

open up the httpd.conf and find the following line:
[code]# same purpose, but it is much slower.
#
DirectoryIndex[/code]
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:
[code]DirectoryIndex index.html index.html.var index.php index.htm[/code]

Save the httpd.conf and restart the Apache server for the changes to be made.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.