
Note that LogFile is specified using a perl merging script that concatenates the. HostAliases="The config file starts by including the generic settings file so the website specific settings can be overridden afterwards. LogFile="/usr/share/awstats/tools/ /var/log/nginx/ /var/log/nginx/.1 |" Otherwise there will be a config file include loop.įor each website, a separate config file must be created with a filename exactly matching the website hostname, according to this format: /etc/awstats/awstats.$.conf.įor our "" domain example, the configuration would look like this:Ĭontents of /etc/awstats/ # Include "/etc/awstats/" Find this line, near the end of the file, and comment it. LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat" Find this line and uncomment it to enable Geo IP. LogFormat=1 This will work with the Nginx default logging format I only changed the following values and set them like this: We are going to do things slightly different.
#Awstats ubuntu how to#
Here is how to install it using apt and cpan. For this to work, the perl module Geo::IP is required. We are going to turn on just one extra feature, the Geo IP locator. Set Up AWStats for Nginx on Ubuntu 18.04ĪWStats itself is available in the Ubuntu repositories.Install, configure and protect Awstats for multiple nginx vhost on Debian/Ubuntu.The guide relies heavily on information from these very useful posts: Ubuntu 20.04 LTS Server (in a DigitalOcean droplet).


#Awstats ubuntu software#
We'll go through all those steps in this guide.įor the record, the software versions used as of writing the guide are:
#Awstats ubuntu password#
Hosting the AWStats web interface behind a HTTP digest password.Making AWStats parse the website logs at a certain interval.Configuring AWStats generally and specifically for the websites to monitor.Installation of AWStats and dependencies.

To make AWStats tick, we need to accomplish the following things: AWStats simply parses the web server access logs and is able to derive rather detailed information about unique page visits, referring URLs, search engine terms, visit duration, errors, download sizes and more.
#Awstats ubuntu code#
But it is still one of the better free web analytics solutions that works without needing to insert any code on the websites to monitor. This is a guide for installing AWStats on an Ubuntu 20.04 server for website analytics of multiple virtual hosts served by Nginx.ĪWStats is a venerable log analyzer going all the way back to year 2000.
