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.
Reply
 
Thread Tools Display Modes
  #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
Reply

Bookmarks

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 19:51
Webalizer Stats and Drupal dclardy General 0 26th February 2010 04:56
Apache LoadBalanced, Ldirector. eterzella HOWTO-Related Questions 6 7th February 2009 15:43
.htaccess empty for stats mccharlet Installation/Configuration 1 8th January 2009 11:38


All times are GMT +2. The time now is 11:48.


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