ПРОЕКТЫ 


  АРХИВ 


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]

Иногда портится fastcgi-кеш


  • To: nginx-ru@xxxxxxxxx
  • Subject: Иногда портится fastcgi-кеш
  • From: Aleksandr Sytar <sytar.alex@xxxxxxxxx>
  • Date: Tue, 19 Oct 2010 15:46:33 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=9QjDmRB6U2jUGHquPon2LPooB2Ibp+up2Qr64hzWPqs=; b=pGibliUG/Ea3Hwm9GVXBwkQvJM5WsOS/70V2Jira/+OREnXla5z2ppqi3EFmjSjDDT 5vNk0pRvnvH/F2n6PKk2GmJ770NWL3Ic/WtsXqxZqXa5DzXjPLKF4xQXCLx07Z9f2xhE SWq+6wejVc2vNltqSs0B4SbgKOgABu57tbqKc=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=kyLzy/mj+0jIDJpz2uv5uUSoOOrf0ZvH3ArY73uhN5L5xHf94w9PEUO6g7Lx9L227U Iheb4CYZtG/VxCUQqSh8olpFwMnxD1cmJC0R9U2+Ixki2qcKk4+JfgoxINp+2sXZfLha c+KoQgKNc7pAhwbKhmHQ8Y16uVALCzBV9s62I=

Иногда портится кеш при fastcgi_cache. Закономерностей никаких при
этом не наблюдается.

В аттаче испорченный файл.

Конфиг

user www-data;
worker_processes  8;

worker_rlimit_nofile 8192;
worker_rlimit_core 8192;

working_directory /var/core;

error_log  /var/log/nginx/error.log info;
#error_log /dev/null;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}

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

    log_format        main '"$remote_addr" $host [$time_local] '
                      '"$request" $status $body_bytes_sent '
                        '$request_length $bytes_sent "$http_referer" '
                        '"$http_user_agent" $request_time "$gzip_ratio"';

    server_tokens off;

    sendfile        on;
    tcp_nopush          on;
    tcp_nodelay         on;


    reset_timedout_connection on;
    client_header_timeout  15;
    client_body_timeout     15;
    send_timeout                5;
    keepalive_timeout        5 15;

    limit_req_zone  $binary_remote_addr  zone=qglob:10m   rate=6r/m;
    limit_zone cglob $binary_remote_addr 10m;

    gzip  on;
    gzip_min_length  1000;
    gzip_types       text/plain text/xml application/xml;
    gzip_disable "msie6";
    gzip_vary on;

    fastcgi_cache_path /var/lib/nginx/cache     keys_zone=product:3m levels=;

    upstream backend {
        server  unix:/var/run/php5/php5.socket;
    }

    ## WWW main server
  server {
        listen 80;
        server_name vsedlyauborki.ru www.vsedlyauborki.ru;

        charset utf-8;

        limit_conn cglob 32;

        access_log  /var/log/nginx/vsedlyauborki.ru-access.log main;
        root   /var/www/www;
        
        fastcgi_cache product;
        fastcgi_cache_key $uri$is_args$args;
        fastcgi_no_cache $cookie_cisession;
        fastcgi_cache_bypass $cookie_cisession;
#       fastcgi_cache_use_stale updating http_500 http_503;
        fastcgi_cache_valid  200 301 302 304  1h;
        fastcgi_cache_valid  any 10m;
        
        location =/tmp {
            deny all;
        }
        
        location =/robots.txt {
                access_log off;
                expires max;
        }
        
        location =/favicon.ico {
                access_log off;
                expires max;
        }
                
        location /cart {
                fastcgi_pass backend;
                include /etc/nginx/fastcgi_params_www;
        }

        
        location =/ {
                fastcgi_pass backend;
                include /etc/nginx/fastcgi_params_www;
        }

        location =/index.php {
                fastcgi_pass backend;
                include /etc/nginx/fastcgi_params_www;

        }

        location / {
                try_files $uri @php;
        }

        location @php {
                fastcgi_pass backend;
                include /etc/nginx/fastcgi_params_www;
        }

   }

}


-- 
Have a nice day

Attachment: 6666cd76f96956469e7be39d750cc7d9
Description: Binary data

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.