[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Webalizer problem...Still
- Subject: Re: [cobalt-users] Webalizer problem...Still
- From: Lists Only <listaid@xxxxxxxxxxxxx>
- Date: Wed Nov 7 06:19:06 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
on 11/7/01 7:32 AM, Sqlcoders.com Programming Dept at coders@xxxxxxxxxxxxx
wrote:
> Hiya,
> Ok well this is a high simplification, and its not clean, but it should
> work.
> If you simply change the filename that gets rewritten to htold or similar,
> then whatever the webalizer does it wont really affect access, plus you can
> put in custom .htaccess files, its messy, but doing a global search/replace
> inside a file is easier than trying to change the coding to write out
> different contents etc.
> Of course if you did do this you'd need to manually remove the .htaccess
> files because the webalizer wouldn't know about them after the filename
> change.
>
> Just a thought....
>
I was about to write back and say that won't work, then I thought about it
and I did what you suggested, which was I figured out, was to change in the
webalizer.pl the following lines:
# Create a .htaccess1 if it isn't there yet
if (!-e '$thepath/.htaccess1')
{
my $string =
"#Access file\norder allow,deny\nallow from all\nrequire group
$name\nAuthname WebStats\nAuthtype Basic\nAuthAuthoritative off\n";
open HTACCESS, qq(>$thepath/.htaccess1);
print HTACCESS $string;
close HTACCESS;
chmod 0744, qq($thepath/.htaccess1);
Instead of .htaccess I changed it to .htaccess1, so now webalizer.pl writes
to .htaccess1 instead of .htaccess.
Now, I can upload my own .htaccess file for my clients, if they so choose
and not have to worry about it being overwritten.
BTW: htold wouldn't work.
Thanks for the infusion of a new idea.
aky
> ----- Original Message -----
> From: "Lists Only" <listaid@xxxxxxxxxxxxx>
> To: <cobalt-users@xxxxxxxxxxxxxxx>
> Sent: Tuesday, November 06, 2001 5:18 PM
> Subject: [cobalt-users] Webalizer problem...Still
>
>
>> Okay, It seems I'm just dumb. I've followed the directions on the
>> (http://www.uk2raq.com/raqfaq/raqfaqshow.php?faq=83), and still the
>> .htaccess file is overwritten. Been, kicking this around for nearly a
> week
>> now. I've tried everything I know I even tried commenting out the lines
> to
>> see if that would work and no luck.
>>
>> Any how I'm at a loss at what to do. Would be nice if there was a way to
>> just do away with the .htaccess file as many of my clients could care less
>> if their site is accessible to all or not. For the one's that care I can
>> always install my own .htaccess file for each site's stats area.
>>
>> Assistance needed.
>>
>> aky
>>
>> _______________________________________________
>> cobalt-users mailing list
>> cobalt-users@xxxxxxxxxxxxxxx
>> To Subscribe or Unsubscribe, please go to:
>> http://list.cobalt.com/mailman/listinfo/cobalt-users
>>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>