Web Hosting Talk







View Full Version : Password Protect Webalizer Logs 2.01


HostingDirect
08-24-2001, 07:49 AM
I have talked to some people who have installed Webalizer 2.01 and the logs (/~stats/) requires the site admin password though mine are showing up without any required password.

What would be the best way to password protect them (by hopefully using the site admin password)?

Thanks,

Chicken
08-24-2001, 01:59 PM
order allow,deny
allow from all
require valid-user
Authname 'Anytext here'
Authtype Basic


require valid-user is any user on the system, this could be you, siteadmin, a general user (any user). This would probably work fine. Or you can replace 'valid-user' with...

require user admin that would be admin of the server (you).
require user UsERnaMe (not that literally), any specific username you want to have access.

require user siteadmin would probably work also, though I'm not sure that 'siteadmin' is correct, but it would seem to make sense. Can you tell I'm too lazy to test it, heh?

seattlite
08-24-2001, 02:23 PM
where would you make this changes Chicken?

broken
08-24-2001, 04:32 PM
I would suggest using require group sitex replacing sitex with the site name/number, ie. home, site1, site2, site3, etc. That way only users of that specific site would be allowed to view the stats - as well as admin.

The changes Chicken listed would be made to .htaccess

HostingDirect
08-25-2001, 10:25 PM
I got it working, it turns out Webalizer 2.0 created the proper .htaccess files but .htaccess was disabled on my server. It appears the Raq4i's have disabled the use of the .htaccess files by default so I had to go in and edit the /etc/httpd/conf/access.conf file. I had to change the line that had "AllowOverride None" to "AllowOverride All" and it all is working fine now.

Thanks for the suggestions!

Chicken
08-26-2001, 01:30 AM
Ahhhh yes, I had thought an update solved that problem? That drove me nuts when I first got the 4 :angry: