Issues with web server
Web server files
Files | CentOS | Debian, Ubuntu |
---|---|---|
Apache configuration file | /etc/httpd/conf/httpd.conf | /etc/apache2/apache2.conf |
Nginx configuration | /etc/nginx/nginx.conf | /etc/nginx/nginx.conf |
Issues with website statistics collection
Statistics is not displayed to a user
Statistics for a WWW-domain is stored in /var/www//data/www//webstat. Make sure that the files in this directory belong to the user.
Statistics displays only one unique visitor
This problem can occur if both Nginx and Apache are installed. To resolve the issue, install mod_rpaf for Apache.
Zero statistics
Check that the AWStats configuration file for the WWW-domain /etc/awstats/awstats..conf has the parameter:
Awstats configuration file
LogFormat=1
Check the Apache configuration file for the WWW-domain /conf/vhosts// contains the forward — "combined":
Apache configuration file
CustomLog /var/www/httpd-logs/<WWW-domain>.access.log combined
How to exclude my IP from statistics
Add the following string into the configuration file /etc/awstats/awstats..conf.
Awstats configuration file
SkipHosts="<IP address>"
Note:
For more information about Awstats issues please refer to the official website.