Web Hosting Talk







View Full Version : So what the heck would cause an index.html page to go unrecognized by a browser!


JoeM
06-28-2001, 07:02 PM
I have a webalizer stats index.html page that goes unrecognized, i.e. I just get the raw list of directory files in the browser window even though the index.html file is there, and I can click on it and it opens up just fine. What's more, this was working one second, and the next second, poof, no automatically opening index page. In my experience, it's the only index.html page on our server that behaves this way.

However, I also have a customer I tried to show a (different) web page to and he only gets the raw directory even though the index.html file comes up correctly for us.

Are there gremlins in our machines or what?

Anyone ever experience this before?

Thanks much.

Dim8
06-28-2001, 10:56 PM
Is there a .htaccess in your /web folder? If so, it could be causing index.html not to load up and be showing the contents of the folder.

qslack
06-28-2001, 10:59 PM
Did you set those directories' DirectoryIndex file to anything other than index.html? That could be the case...

No matter what's wrong, putting a .htaccess file with 'DirectoryIndex index.html' in those directories will solve your problem.

JoeM
06-28-2001, 11:56 PM
Originally posted by Dim8
Is there a .htaccess in your /web folder? If so, it could be causing index.html not to load up and be showing the contents of the folder.


Thanks for the reply. Yes there is, for the security stuff, at least for the Webalizer dir. so I telnetted in a added this line at the top:
directoryindex index.html

Still no go. Regarding the other incident, I added an htaccess file with that line being the only line, and my client reported no difference. So this one has really got be puzzled.

JoeM
06-28-2001, 11:58 PM
Originally posted by qslack
Did you set those directories' DirectoryIndex file to anything other than index.html? That could be the case...

No matter what's wrong, putting a .htaccess file with 'DirectoryIndex index.html' in those directories will solve your problem.

I did add directoryindex index.html, to an htaccess file in both cases, and the devil of it is, it didn't seem to help.

huck
06-29-2001, 08:26 AM
Try to resolve if this is a per directory issue or a server-wide issue.

1. Do other directories exhibit the same behavior -- that is do index.html files fail to be displayed?

2. If yes, then this is likely a main server configuration error, and you will need to take a look at the httpd.conf file.

3. If no, then you have an error in your htaccess file. Completely delete the file and start over with a fresh one. If you are FTPing the file to the site, make sure you are in ASCII mode. Also, open the file with pico or vi to make sure that everything is fine.

3. Also, check permissions on the directory, htaccess and the index.html file. Set them all to 755 until you have resolved the problem.