Site error, can't read from directory any more...

Discussion in 'Installation/Configuration' started by jorizzzz, Aug 12, 2008.

  1. jorizzzz

    jorizzzz New Member

    I've got a strange problem with a site of a customer of mine. This site has been on my server for a while without any problems, but lately all of the uploaded pictures on his site have disappeared.

    When i check the log files, i see this error:
    Code:
    Directory index forbidden by Options directive: /var/www/web59/web/upload/
    
    The directory is owned by the user with a chmod 777 so that it is world writable. The strange part is, i've never edited the index options! When i look in the apache2.conf it still is te same like before:

    Code:
    <Directory /var/www/*/web>
        Options +Includes +Indexes
        AllowOverride All
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Allow from all
        </Files>
    </Directory>
    
    I've tried to add a directory options using the Apache directives window in ISPConfig, but the following didn't help either:
    Code:
    <Directory "/var/www/web59/web/upload">
        Options Indexes FollowSymLinks MultiViews
    </directory>
    
    Does anybody have a clue what i'm doing wrong? I'm currently running apache 2.2.4
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Do the images exist on the server (in the correct location)?
     
  3. jorizzzz

    jorizzzz New Member

    Hi Falko,

    Yes, they do exist on the server. When i try to access them using the full path it works..
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Can you post the output of
    Code:
    ls -la /var/www/web59/web/upload
    ?
     
  5. jorizzzz

    jorizzzz New Member

    Sure, here is a small list of all the files that are in that directory:
    Code:
    ls -la /var/www/web59/web/upload
    total 13792
    drwxrwxrwx 2 web59_info web59   4096 Jun 28 16:01 .
    drwxrwxr-x 9 web59_info web59   4096 Aug 12 08:58 ..
    -rw-r--r-- 1 web59_info web59 145442 May 16  2007 Dscn744816050742.jpg
    -rw-r--r-- 1 web59_info web59 131078 May 16  2007 Dscn745116050742.jpg
    -rw-r--r-- 1 web59_info web59 123029 May 16  2007 Dscn745516050721.jpg
    -rw-r--r-- 1 web59_info web59 129260 May 16  2007 Dscn745616050721.jpg
    -rw-r--r-- 1 web59_info web59 142820 May 16  2007 Dscn745716050721.jpg
    -rw-r--r-- 1 web59_info web59 167026 May 16  2007 Dscn745816050721.jpg
    -rw-r--r-- 1 web59_info web59 155482 May 16  2007 Dscn745916050742.jpg
    
     
  6. jorizzzz

    jorizzzz New Member

  7. falko

    falko Super Moderator ISPConfig Developer

    Seems to be working for me...
     

Share This Page