#1  
Old 4th September 2013, 20: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 3.0.5.3 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, 36 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
  #2  
Old 8th November 2013, 21:34
orasis orasis is offline
Senior Member
 
Join Date: Mar 2007
Posts: 169
Thanks: 11
Thanked 7 Times in 7 Posts
 
Default

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


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


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