ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: nginx-ru@xxxxxxxxx
  • Subject: Nginx + PHP5-FPM => не работает javascript... (((
  • From: "Ve0" <nginx-forum@xxxxxxxx>
  • Date: Wed, 29 Jan 2014 05:56:43 -0500
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selenium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=SDVxj8FqvUklHm0vlvKr7vEJS9H+70kFvDkjuy/Fo9Y=; b=x0uaOpMMXLqnLIyHRfp5coR0Oain8jha7TG6U3HesFyP6hi41aEPiaFDxArSDpHs/CFHiC4KhugGlS8Sr2af4FIaZWDkOB8hFDl6/ThOiUXIRQd9aq3L2ni7y4s0AIYwM3fThntDPMIJCFGW6TH+476vwB7Y3uvh4elRKKTzrjE=;

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@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 mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.