Old 4th September 2013, 21:57
Disassembler Disassembler is offline
Junior Member
Join Date: Jul 2012
Posts: 19
Thanks: 2
Thanked 7 Times in 5 Posts
Default Webstats .htaccess issue

I found a problem in the way the .htaccess file for webstats is generated.
A user of ours is running Drupal 6 and has Webalizer stats. Accessing domain.com/stats/ on his site yields a 403 error while domain.com/stats/index.html works. This is due to Drupal6's .htaccess in the document root that specifies
DirectoryIndex index.php
which is automatically active for subdirectories as well, so it works for awstats but not Webalizer.
Thus, I think the autogenerated .htaccess file should explicitly specify the two choices. I've attached an untested but trivial enough patch against that adds this and also fixes incorrect permissions for the .htaccess and .htpasswd_stats files -- they are not executable and shouldn't be marked as such, so the mode is 0644 instead of 0755.
Attached Files
File Type: txt apache2_plugin.inc.php.patch.txt (1.7 KB, 49 views)
Reply With Quote
The Following 2 Users Say Thank You to Disassembler For This Useful Post:
orasis (8th November 2013), till (5th September 2013)
Sponsored Links
Old 8th November 2013, 22:34
orasis orasis is offline
Senior Member
Join Date: Mar 2007
Posts: 183
Thanks: 13
Thanked 13 Times in 13 Posts

nice thanks.
same happens if one changes the order in /etc/apache2/mods-available/dir.conf to use index.php first.
I also agree with the permissions.
same goes for the main website's .htaccess permissions, also all html files, ico, robots.txt, or in /error/ all are 754 and should be 644.

Last edited by orasis; 8th November 2013 at 22:48.
Reply With Quote


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
ISPConfig 3 Single server issues on POP3/IMAP/ MyDNS vk1003 Installation/Configuration 7 17th July 2012 16:25
.htaccess Liac Server Operation 15 20th June 2007 16:19
.htaccess functionality does not work kalikoder Installation/Configuration 7 13th April 2007 09:29
wordpress MU and ISPconfig .htaccess isues palkat General 4 18th October 2006 12:57
.htaccess login challenge broken with mod_rewrite ozonblue Installation/Configuration 2 13th September 2006 11:09

All times are GMT +2. The time now is 21:05.

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