[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Stats
- Subject: Re: [cobalt-developers] Stats
- From: "Nico Meijer" <nico.meijer@xxxxxxxxx>
- Date: Thu Jul 19 22:56:41 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Hi,
> I installed a software on RAQ4 that gives statistics about a website, it
> creates a directory called stats inside that site folder, that can be
> accessed via the browser by going to www.sitename.com/stats
Did you install webalizer?
> but I don't want
> anybody to go there with no password so what can I do?
Drop a .htaccess file in that directory, which requires a login + password.
This is well documented in the users-archive.
Or, you could install the webalizer-auth*.pkg, which creates a .htaccess for
you.
> especially that I
> tried to put some files in that directory but it didn't let me although I
> have the permission of the administrator!!!! the owner of the stats
> directory is "httpd"
Yup, that's your apache user.
> So how can I change the mode so I can put some files in that directory and
> how can I stop anyone from seeing the stats via the browser?
If it's the webalizer version Cobalt distributes via
http://pkg.nl.cobalt.com, then you'd have to edit webalizer.pl, which is
somewhere in /etc/cron.[take-your-pick]. Don't recall from memory and mine's
not there anymore. It's the script that does the "chown -R httpd.[sitex]"
part.
I followed this advice, btw, and have not yet lost any statistics:
http://list.cobalt.com/pipermail/cobalt-users/2000-July/016435.html
Furthermore, I edited the script to have logresolve do reverse lookups on
the IP's in all the web.log files. This way, I get to see hostnames without
having to turn on HostnameLookups in Apache.
If anyone's interested, I can post it here.
Good luck.. Nico