Hello all, I've been using ISPConfig for a while now and am very satisfied with it. Lately, I had a strange problem : I get a 403 error when I try to access the webalizer stats. The authentication is OK (no 401 error), but the page is not accessible. The webalizer script works fine and the stats are updated when I look in the directory. I tried to tweak the authorisations of the directory, creating another user, restarting ISPConfig but no luck. I have to mention that some of my other sites are working fine, and some aren't. I don't have any other idea, so I'm looking for help.
ls -al : drwxrwxrwx 2 russiegourmande.com_angel web17 4096 2008-05-02 04:02 . drwxrwxr-x 13 russiegourmande.com_angel web17 4096 2008-05-14 17:49 .. -rwxrwxrwx 1 russiegourmande.com_angel web17 2419 2008-05-01 04:05 ctry_usage_200804.png -rwxrwxrwx 1 russiegourmande.com_angel web17 2744 2008-05-18 04:04 ctry_usage_200805.png -rwxrwxrwx 1 russiegourmande.com_angel web17 2656 2008-05-01 04:05 daily_usage_200804.png -rwxrwxrwx 1 russiegourmande.com_angel web17 3770 2008-05-18 04:04 daily_usage_200805.png -rwxrwxrwx 1 russiegourmande.com_angel web17 12288 2008-05-18 04:04 dns_cache.db -rwxrwxrwx 1 russiegourmande.com_angel web17 1600 2008-05-01 04:05 hourly_usage_200804.png -rwxrwxrwx 1 russiegourmande.com_angel web17 2159 2008-05-18 04:04 hourly_usage_200805.png -rw-rw-r-- 1 russiegourmande.com_angel web17 125 2008-05-18 04:04 .htaccess -rwxrwxrwx 1 russiegourmande.com_angel web17 4926 2008-05-18 04:04 index.html -rwxrwxrwx 1 russiegourmande.com_angel web17 47547 2008-05-01 04:05 usage_200804.html -rwxrwxrwx 1 russiegourmande.com_angel web17 139414 2008-05-18 04:04 usage_200805.html -rwxrwxrwx 1 russiegourmande.com_angel web17 2530 2008-05-18 04:04 usage.png -rwxrwxrwx 1 russiegourmande.com_angel web17 42618 2008-05-18 04:04 webalizer.current -rwxrwxrwx 1 russiegourmande.com_angel web17 75 2008-05-18 04:04 webalizer.hist _______________________________________________ nano .htaccess : AuthType Basic AuthName "Members Only" AuthUserFile /var/www/web17/.htpasswd <limit GET PUT POST> require valid-user </limit> ____________________________ The .htpasswd is there, owned by root, with two lines for the two users I created for this account.
Here it is : <VirtualHost xx.xx.xx.xx:80> ServerName www.russiegourmande.com:80 ServerAdmin [email protected] DocumentRoot /var/www/web17/web ServerAlias russiegourmande.com DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp$ ErrorLog /var/www/web17/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 php_admin_flag safe_mode Off Alias /error/ "/var/www/web17/web/error/" ErrorDocument 400 /error/invalidSyntax.html ErrorDocument 401 /error/authorizationRequired.html ErrorDocument 403 /error/forbidden.html ErrorDocument 404 /error/fileNotFound.html ErrorDocument 405 /error/methodNotAllowed.html ErrorDocument 500 /error/internalServerError.html ErrorDocument 503 /error/overloaded.html AliasMatch ^/~([^/]+)(/(.*))? /var/www/web17/user/$1/web/$3 AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web17/user/$1/web/$3 </VirtualHost> There is this in the error.log file : Directory index forbidden by Options directive: /var/www/web17/web/stats/ ... and I don't know where to look for that directive.
I recently had a issue pretty much identical to what you are discribing after a customer installed a drupal site. I found it to be a directive in their .htaccess file in their web root.
Good idea. The .htaccess is a DRUPAL file, untouched and exactly similar to the one on another site, which happens to show the same problem. I'll check this closely. Thank you for your hint.
OK, problem solved. I found the solution here : http://drupal.org/node/30334 (see bottom of the page). Summary : You have to say to Drupal that index.html is an ok page as a directory index. It seems very elegant to me. I wouldn't have figured it out without your help. At least not as fast. Thank you very much. Nice day to all.