Error message: Directory has no index file

deekus

Joined: 2005-03-12
Posts: 17
Posted: Sat, 2005-03-12 17:49

I am close to having G2 functioning properly, however when I upload an image, I click on the image and receive the following error:

Directory has no index file.
Browsing this site or directory without an index file is prohibited.

If you are the site's webmaster, you can remedy this problem by creating a default HTML page with one of the following names:

* index.html
* index.htm
* default.htm
* Default.htm
* home.html
* Home.chtml

NOTE: Filenames are case sensitive, i.e., Home.html is not the same as home.html

----------

I have included a blank index.html page in the directory, but I still get the same error. Is there an index.html file that was somehow not created during my install?

Any help would be appreciated.
----

Gallery URL (optional): www.nappyphoto.com
Gallery version: G2 - beta 1
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-03-12 18:09

some more info please, i.e. your actual G2 url, not your G1, the url that leads to the error, etc.

 
deekus

Joined: 2005-03-12
Posts: 17
Posted: Sat, 2005-03-12 18:20

http://www.nappyphoto.com/gallery2/main.php/v/Dan_amp_Taylor.jpg.html

I'm not sure why it is generating a URL that ends in .jpg.html

However, if you look at
http://www.nappyphoto.com/gallery2/main.php
then click on the image link..it will deliver the error message.

Thanks for investigating

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-03-12 18:39

disable the url rewrite module in G2 Site Admin, and it should work.

Then we can find out why mod_rewrite doesn't work as it should...

 
deekus

Joined: 2005-03-12
Posts: 17
Posted: Sat, 2005-03-12 21:37

OK, URL Rewrite has been uninstalled, and I removed the Mod_Rewrite instructions in the gallery2 .htaccess file.

-Dan

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-03-12 22:22

deekus, does G2 work now as you've disabled the rewrite module?

when i browse to your website, it seems you still have short urls active.

 
deekus

Joined: 2005-03-12
Posts: 17
Posted: Sat, 2005-03-12 22:40

I just removed the rewrite script from the root directory .htaccess file.

It is still returning error pages.

If you go to
http://www.nappyphoto.com/gallery2/main.php

And click on either of the sample images, you'll see the error message mentioned above.

-D

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-03-12 22:44

You need to disable the rewrite module also, so that it stops generating short urls. Go to Site Admin -> Modules and click the "deactivate" link on the URL Rewrite module.

 
deekus

Joined: 2005-03-12
Posts: 17
Posted: Sat, 2005-03-12 22:47

I uninstalled URL Rewrite.

Do I need to re-install it, and then deactivate it?

-D

 
deekus

Joined: 2005-03-12
Posts: 17
Posted: Sat, 2005-03-12 22:54

I've disabled "Short URLs" in the general settings as well.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-03-12 22:55

Oh! Sorry -- I got confused. But you're using the "Short urls" feature that shipped with Beta 1 (which I've since removed -- we're going to use the rewrite module only in the future). Please turn that off. Go to Site Admin -> General and find the "Short Urls" section and turn it off there. Let's see if that fixes the problem.

 
deekus

Joined: 2005-03-12
Posts: 17
Posted: Sat, 2005-03-12 22:56

OK, so disabling URL rewrite, AND short URLs seems to have solved my problem.

Thanks for the assistance

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-03-12 23:01

With short urls off, you could try reinstalling the url rewrite module and see if that works for you by itself...