home | login | register | DMCA | contacts | help | donate |      

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z


my bookshelf | genres | recommend | rating of books | rating of authors | reviews | new | | collections | | | add



7.12.1.3. 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


Order deny,allow

Allow from ALL

AuthType Basic

AuthName "usage statistics"

AuthUserFile /var/lib/webalizer/passwd

Require valid-user


Create the password file with the htpasswd command:

# htpasswd -c /var/lib/webalizer/passwd chris

New password:

NeverGuess

Re-type new password:

NeverGuess

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.


7.12.1.2. Analyzing the FTP logfile | Fedora Linux | 7.12.2. How Does It Work?