Добрый день!
не получается настоить связку nginx + awstats
http://127.0.0.1:8282/awstats/в ответ 404 Not Found
nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8282;
server_name localhost;
location / {
root html;
index index.html index.htm index.php;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param DOCUMENT_ROOT /home/mouse/nginx/nginx/html/;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location /awstatsclasses/ {
alias /home/mouse/nginx/awstats/wwwroot/classes/;
}
location /awstatscss/ {
alias /home/mouse/nginx/awstats/wwwroot/css/;
}
location /awstatsicons/ {
alias /home/mouse/nginx/awstats/wwwroot/icon/;
}
location /awstats/ {
alias /home/mouse/nginx/awstats/wwwroot/cgi-bin/;
}
}
}
awstats.demos.conf - тут правил только вот эту строку
LogFile="/home/mouse/nginx/nginx/logs/access.log"
Пользователь решил продолжить мысль 28 Сентября 2012, 17:59:44:
/home/mouse/nginx/awstats-7.0/wwwroot/cgi-bin/awstats.pl -update -config=demos/home/mouse/nginx/awstats-7.0/wwwroot/cgi-bin/awstats.pl -update -config=demos
Error: Couldn't open config file "awstats.demos/home/mouse/nginx/awstats-7.0/wwwroot/cgi-bin/awstats.pl.conf" nor "awstats.conf" after searching in path "/home/mouse/nginx/awstats-7.0/wwwroot/cgi-bin, /etc/awstats, /usr/local/etc/awstats, /etc, /etc/opt/awstats": Нет такого файла или каталога
- Did you use correct config parameter ?
Example: If your config file is awstats.mysite.conf, use -config=mysite
- Did you create your config file 'awstats.demos/home/mouse/nginx/awstats-7.0/wwwroot/cgi-bin/awstats.pl.conf' ?
If not, you can run "awstats_configure.pl"
from command line, or create it manually.
Check config file, permissions and AWStats documentation (in 'docs' directory).