HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   Drupal, .htaccess and stats (http://www.howtoforge.com/forums/showthread.php?t=61517)

8omas 19th April 2013 00:11

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?


All times are GMT +2. The time now is 03:35.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.