Nginx + PHP5-FPM => не работает javascript... (((

Ve0 nginx-forum at nginx.us
Wed Jan 29 10:56:43 UTC 2014


nginx version: nginx/1.4.4
PHP 5.3.10-1ubuntu3.9 (fpm-fcgi) (built: Dec 12 2013 04:31:25)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH

Конфиг:
root at http:/var/log# cat /etc/nginx/nginx.conf 
user www-data;
worker_processes 2;
timer_resolution 100ms;
worker_rlimit_nofile 8192;
worker_priority -5;

pid /var/run/nginx.pid;

events {
	worker_connections 2048; # default: 768
	use epoll;
}

http {
	reset_timedout_connection on;
	sendfile off;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size 2048;
	server_tokens off;

	map_hash_bucket_size 64;
	server_names_hash_bucket_size 64;
	server_name_in_redirect off;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	fastcgi_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=one:10m;

	gzip on;
	gzip_disable "msie6";

	gzip_vary on;
	gzip_proxied any;
	gzip_comp_level 6;
	gzip_buffers 64 8k;
	gzip_http_version 1.1;
	gzip_min_length 1100;
	gzip_types text/plain text/css application/json application/x-javascript
text/xml application/xml application/xml+rss text/javascript;

	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}




Конфиг сайта:

server {
    listen      80;
    server_name stat.***.ru;

    access_log  /var/log/nginx/***.ru/stat_access.log;
    error_log   /var/log/nginx/***.ru/stat_error.log;

    if ($request_method !~ ^(GET|HEAD|POST)$ ) {
        return 444;
    }

    root /var/www/***/stat/;
    index index.php index.html;


    location = /favicon.ico {
        try_files /favicon.ico =204;
    }

    location / {

        location ~* ^.+\.(?:css|js|jpg|png|gif|jpeg|swf)$ {
            valid_referers none blocked *.dazab.ru;
            if ($invalid_referer)  {
                return 444;
            }
            expires max;
            tcp_nodelay off;
            open_file_cache max=500 inactive=120s;
            open_file_cache_valid 45s;
            open_file_cache_min_uses 2;
            open_file_cache_errors off;
            break;
        }

        location ~*
(?:DESIGN|(?:gpl|README|LICENSE)[^.]*|LEGALNOTICE)(?:\.txt)*$ {
            return 404;
        }

        location ~* \.(?:bat|html?|git|ini|sh|svn[^.]*|txt|tpl|xml)$ {
            return 404;
        }

        try_files $uri /index.php;
    }

    location ~* ^/(?:index|piwik)\.php$ {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi_params;
    }

    location ~* ^.+\.php$ {
        return 404;
    }

    location = /robots.txt {
        return 200 "User-agent: *\nDisallow: /\n";
    }
}

Это стандартный конфиг Piwik взятый с сайта nginx.org. Но не хочет нормально
работать ява скрипт. Не работает статистика, ошибок нигде нету... На сайте
все что связано с аяксом не работает. Куда рыть, подскажите плиз!

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,246962,246962#msg-246962



Подробная информация о списке рассылки nginx-ru