Apache 2.4.46 based on official alpine apache image. Rebuilt with awstats-7.8 added.
331
Apache 2.4.46 based on official alpine apache image. Rebuilt with awstats-7.8 added.
To work with it:
Vhost example:
<VirtualHost *:8080>
LoadModule cgid_module modules/mod_cgid.so
ServerName awstats.local
ServerAdmin me@home
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
DocumentRoot /data
<Directory "/data">
AllowOverride None
Require all granted
Allow from all
</Directory>
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
Alias /icon "/usr/local/awstats/wwwroot/icon"
<Directory "/usr/local/awstats/wwwroot/cgi-bin/">
AllowOverride None
DirectoryIndex awstats.pl
AddHandler cgi-script pl
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
Require all granted
# AuthUserFile /var/www/awstats/.htpasswd
# AuthName "Restricted Access"
# AuthType Basic
# Require valid-user
</Directory>
<Directory "/usr/local/awstats/wwwroot/icon/">
Options None
AllowOverride None
Require all granted
Allow from all
</Directory>
</VirtualHost>
Awstats conf file example (for postfix stats):
SiteDomain=mywebsite.mydomain
DirData=/data
LogFile="/usr/local/awstats/tools/maillogconvert.pl standard < /data/mail.log |"
LogType=M
LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForWormsDetection=0
LevelForSearchEnginesDetection=0
LevelForFileTypesDetection=0
ShowMenu=1
ShowSummary=HB
ShowMonthStats=HB
ShowDaysOfMonthStats=HB
ShowDaysOfWeekStats=HB
ShowHoursStats=HB
ShowDomainsStats=0
ShowHostsStats=HBL
ShowAuthenticatedUsers=0
ShowRobotsStats=0
ShowEMailSenders=HBML
ShowEMailReceivers=HBML
ShowSessionsStats=0
ShowPagesStats=0
ShowFileTypesStats=0
ShowFileSizesStats=0
ShowBrowsersStats=0
ShowOSStats=0
ShowOriginStats=0
ShowKeyphrasesStats=0
ShowKeywordsStats=0
ShowMiscStats=0
ShowHTTPErrorsStats=0
ShowSMTPErrorsStats=1
Content type
Image
Digest
Size
19.1 MB
Last updated
almost 6 years ago
docker pull djtabasco/apache-awstats:2.4.46