AWSTATS - Quick website statistics w/ authentication protection...

5 months ago
8

Come along with TechHeart - we wanted to add some website statistics to the techheart.life website... so we did just that!! AWSTATS is a nice, easy to use, website statistics software - we'll show you how to add it to any website and give it basic password authentication so other users don't have access to your statistics!! Lets g0000000.

iNFOZ:

YouTube won't allow angled brackets; they are replaced with ( )'s:

awstats.conf:
ScriptAlias /awstats/ /usr/lib/cgi-bin/
Alias /awstats-icon/ /usr/share/awstats/icon/
Alias /awstatsclasses/ /usr/share/java/awstats/

(Directory "/usr/lib/cgi-bin/")
Options None
AllowOverride None
(IfModule mod_authz_core.c)
# Apache 2.4
Require host 192.168.0.0/24
(/IfModule)
(IfModule !mod_authz_core.c)
# Apache 2.2
Order allow,deny
Allow from 192.168.0.0/24
Allow from ::1
(/IfModule)
(/Directory)

awstats.example.com.conf:
Set the log file path:
LogFile="/var/log/apache2/example.com-access_log"

Set the domain name:
SiteDomain="tecadmin.net"

Set the aliases for the host:
HostAliases="example.com www.example.com"

Access awstats page:
https://example.com/awstats/awstats.pl?config=example.com

Add to /etc/apache2/sites-available/example.com.conf:
(Directory /usr/lib/cgi-bin/)
AuthType Basic
AuthName 'Private ScriptZzZ'
AuthUserFile '/etc/apache2/.htpasswd'
Require valid-user
(/Directory)

Find us on Discord @1204957799700889620 -
https://discord.com/channels/1204957799700889620/1204957800157937746

techheart.life

Loading 1 comment...