[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Webalizer problem
- Subject: Re: [cobalt-users] Webalizer problem
- From: "MikeM" <MyRaQ@xxxxxxxxx>
- Date: Sat Nov 3 07:24:02 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On 11/2/2001 at 3:20 PM Brian Rahill wrote:
|>Webalizer "most likely" will not overwrite a .htaccess file if you
|modify
|>it, only if you delete it.
|
|AFAIK, it overwrites the .htaccess each time. To "fix" this see:
|
|http://www.uk2raq.com/raqfaq/raqfaqshow.php?faq=83
=============
The Webalizer 2.01 package from cobalt-aid.sourceforge.net odoes not overwrite the .htaccess file. here's the code from the /usr/bin/webalizer2.pl script that runs webalizer:
# Create a .htaccess if it isn't there yet
if (!-e '$thepath/.htaccess')
{
# build the file
my $htaccess = "# Access file";
$htaccess = "$htaccess \nAuthName \"Stats for $asite\"";
$htaccess = "$htaccess \nAuthType Basic";
$htaccess = "$htaccess \nAuthPAM_Enabled off";
$htaccess = "$htaccess \nAuthUserFile $prefix/.htpasswd";
$htaccess = "$htaccess \nAuthGroupFile $prefix/.htgroups";
$htaccess = "$htaccess \nrequire group all $asite";
open HTACCESS, qq(>$thepath/.htaccess);
print HTACCESS $htaccess;
close HTACCESS;
chmod 0744, qq($thepath/.htaccess);
}