Welcome! Log In Create A New Profile

Advanced

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

Васильев "Zmey!" Олег
January 29, 2014 07:26AM
Во-первых, откройте инструменты разработчика в браузере и посмотрите, какой код ответа приходит для JS файлов.

29.01.2014, 14:57, "Ve0" <nginx-forum@nginx.us>:
> 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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

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

Ve0 January 29, 2014 05:56AM

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

Васильев "Zmey!" Олег January 29, 2014 07:26AM

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

Ve0 January 31, 2014 01:57AM

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

Виталий Ф. January 31, 2014 02:42AM

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

Ve0 January 31, 2014 03:46PM

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

Ve0 February 03, 2014 12:52AM

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

Валентин Бартенев February 04, 2014 09:33AM

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

kisulja February 04, 2014 09:33AM

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

Ve0 February 12, 2014 02:01AM

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

Ve0 October 01, 2014 02:40AM

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

Ve0 October 01, 2014 02:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 54
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready