Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 19th April 2013, 01: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:
ErrorDocument 401 "Unauthorized"
ABOVE everything in the .htaccess of stats folder so it looks like this
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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing default .htaccess in stats folder dclardy Developers' Forum 2 7th April 2010 20:51
Webalizer Stats and Drupal dclardy General 0 26th February 2010 05:56
Apache LoadBalanced, Ldirector. eterzella HOWTO-Related Questions 6 7th February 2009 16:43
.htaccess empty for stats mccharlet Installation/Configuration 1 8th January 2009 12:38

All times are GMT +2. The time now is 20:39.

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