11 February 2008 - 10:39lighttpd and awstats
There are lots of howtos for running awstats with lighthttpd. Nearly all of them define a subdomain for statistics but miss to add the only line for defaulting to awstats.pl. Here is what you have to do to do it the common way $HOST/awstats:
- open /etc/lighttpd/lighttpd.conf
- uncomment mod_cgi.conf
- add the following for a single host (don’t forget to change www.example.com as well as the path to awstats) or adopt it to your needs with mod_evhost:
# {{{ awstats.
$HTTP["host"] =~ “www.example.com” {
alias.url = (
“/awstats/icons” => “/usr/share/webapps/awstats/6.5-r1/htdocs/icon/”,
“/awstats/classes” => “/usr/share/webapps/awstats/6.5-r1/htdocs/classes/”,
“/awstats/css” => “/usr/share/webapps/awstats/6.5-r1/htdocs/css/”,
“/awstats.pl” => “/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl”,
“/awstats” => “/usr/share/webapps/awstats/6.5-r1/hostroot/cgi-bin/awstats.pl”)
cgi.assign = ( “.pl” => “/usr/bin/perl”, “.cgi” => “/usr/bin/perl” )
}
# }}}
No Comments
Categories: Linux, Webserver, howto
Tags: code, howto, Linux, Software