anthonyfellows Posted October 11, 2006 Share Posted October 11, 2006 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] Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted October 11, 2006 Share Posted October 11, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.