View Single Post
  #1  
Old 19th April 2013, 00:11
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default Drupal, .htaccess and stats

I have noticed with Drupal 7 the stats folder (created by ISPConfig) is not accessible. The .htaccess of drupal in conjuction with the .htaccess of stats folder is (probably) the reason for that.
A quick solution (leaving intact the .htaccess of Drupal, so as not to hack Drupal) is to ADD the line:
Code:
ErrorDocument 401 "Unauthorized"
ABOVE everything in the .htaccess of stats folder so it looks like this
Code:
ErrorDocument 401 "Unauthorized"

AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/clients/clientXX/webYY/web/stats/.htpasswd_stats
require valid-user
More here: http://drupal.org/node/30334

Does anyone know a better solution or am I the only one with this problem?
Reply With Quote
Sponsored Links