Skip to content

Instantly share code, notes, and snippets.

@kejadlen
Created July 25, 2012 15:11
Show Gist options
  • Save kejadlen/3176686 to your computer and use it in GitHub Desktop.
Save kejadlen/3176686 to your computer and use it in GitHub Desktop.
0,10,20,30,40,50 * * * * www-data [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.foobar.conf -a -r /var/log/lighttpd/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=foobar -update >/dev/null
LogFile="/var/log/lighttpd/access.log"
LogType=W
LogFormat=1
SiteDomain="foobar"
HostAliases="localhost 127.0.0.1 REGEX[foobar$]"
DNSLookup=1
DirData="/var/lib/awstats"
DirCgi="/cgi-bin"
DirIcons="/icon"
SkipHosts="127.0.0.1 localhost REGEX[^192\.168\.]"
prerotate
/usr/lib/cgi-bin/awstats.pl -config=foobar -update
endscript
server.modules += ( "mod_cgi" )
$HTTP["host"] =~ "stats.foobar" {
alias.url = ( "/icon/" => "/usr/share/awstats/icon/",
"/css/" => "/usr/share/doc/awstats/examples/css/",
"/cgi-bin/" => "/usr/lib/cgi-bin/" )
cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl" )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment