Это старая версия документа!


AWStats - Сервер статистики

$ apt-get install fcgiwrap

Проверка

$ netstat -an |grep -i perl

Настройка Nginx

# Perl fastcgi
location ~ \.pl$ {
  gzip off;
  try_files $uri =404;
  root /var/www/;
  fastcgi_pass unix:/var/run/fcgiwrap.socket;
  include /etc/nginx/fastcgi_params;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  fastcgi_ignore_client_abort off;
}

Настройка Nginx

                # Awstats
                location /awstats/ {
                        root   /usr/lib/cgi-bin;
                        index  index.html index.htm index.pl;
                        auth_basic \"Website development\"; 
                        auth_basic_user_file /home/${site_name}/authfile;
                }
                location /awstatsclasses/ {
                        alias /usr/share/awstats/lib/;
                }
                location /awstats-icon/ {
                        alias /usr/share/awstats/icon/;
                }
                location /awstatscss {
                        alias /usr/share/doc/awstats/examples/css/;
                }