ПРОЕКТЫ 


  АРХИВ 


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]

keepalive


  • To: nginx-ru@xxxxxxxxx
  • Subject: keepalive
  • From: "Alec" <nginx-forum@xxxxxxxx>
  • Date: Thu, 24 Jun 2010 08:17:10 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=/77HD0nmE7i9/Qx6L0hRwoq3uCs9st0N5DRMA0i1EKY=; b=SjOMX0zM2MjiYOTcuA4QX72uYjSUUAIAGp67HMwekLiGAXszdHbekifEKCUR26WrOfl0/+OzHwjscz8BAa+38HtCfeaHSSM/REgmcLjy/c3WS9r9tLhq1CEfkaePpecx;

user www www;
worker_processes 2;

error_log /var/log/www/error_log.ngx;

pid     /var/run/www/nginx.pid;

timer_resolution 150ms;

worker_rlimit_nofile 230400;
events {
    worker_connections 230400;
    use kqueue;
}

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

    access_log off;
    
    sendfile        on;
    tcp_nopush     on;

    keepalive_timeout 30;
    
    client_body_buffer_size 1M;
    client_max_body_size 5M;
    client_body_in_single_buffer on;

    gzip on;
    gzip_disable "MSIE [1-6]\."; 
    gzip_types text/plain text/css application/x-javascript text/xml
application/xml;
    gzip_buffers 4 8k;
    gzip_comp_level 9;
    gzip_static on;
    gzip_proxied any;
    
    tcp_nodelay on;
    reset_timedout_connection on;
    server_tokens off;

    limit_zone          lzone $binary_remote_addr 10m;
    limit_req_zone      $binary_remote_addr zone=rzone:10m rate=10r/s;

    server {
        listen       xx.xx.xx.xx:80 default accept_filter=httpready;
        server_name ~^(.*)$;

        limit_conn      lzone 10;
        limit_req       zone=rzone burst=20;

        error_page 404 400 /?404;

        set $p $host;
        if ($host ~ www\.(.*)){ set $p $1; }

        location / {
            proxy_pass http://127.0.0.1:8000;
            proxy_redirect off;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
            proxy_connect_timeout 75;
            proxy_send_timeout 10m;
            proxy_read_timeout 10m;
            proxy_buffer_size 64k;
            proxy_buffers 16 256k;
            #proxy_hide_header "Set-Cookie";
            proxy_ignore_headers "Cache-Control" "Expires";
            proxy_cache_use_stale error timeout invalid_header http_500
http_502 http_503 http_504;
            proxy_cache_valid 200 301 302 304 5m;
            proxy_cache_key
"$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri";
        }

        location ~*
^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|js|swf|doc|xls|mp3|mid|wma|pdf|ppsx|ttf|xml|txt|tpl)$
{
                root /home/$p/html;
        }
        location ~ /\.ht {
            deny  all;
        }
    }
}

OS: FreeBSD 7 amd64
Nginx: 0.7.67
Проблема: На сайте есть страницы, где
очень много мелких эскизов картинок. До
обновлении до данной версии работал
параметр keepalive. Сейчас хоть указывай в
"0" его. Эффекта никакого. В логах nginx
ошибок нет.

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


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


 




Copyright © Lexa Software, 1996-2009.