220.127.116.11. Accessing the usage statistics from another location
It's often inconvenient to access the usage statistics from the same machine that is running Apache. To make the statistics password-protected and accessible from any system, edit the file /etc/httpd/conf.d/webalizer.conf to look like this:
# This configuration file maps the Webalizer log-analysis
# results (generated daily) into the URL space. By default
# these results are only accessible from the local host.
Alias /usage /var/www/usage
Allow from ALL
AuthName "usage statistics"
Create the password file with the htpasswd command:
# htpasswd -c /var/lib/webalizer/passwd chris
Re-type new password:
Adding password for user chris
The SELinux context of the directory containing the password file must be changed in order for this to work:
# chcon -t httpd_sys_content_t /var/lib/webalizer/
The statistics reports should now be accessible using a web browser on any computer.