ðòïåëôù 


  áòèé÷ 


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]

Re: nginx-0.7.37


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: nginx-0.7.37
  • From: Eugene Fit <eugene.fit@xxxxxxxxx>
  • Date: Wed, 25 Feb 2009 20:09:59 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=CWDs5EsGeMxrLpjR0x4M6S+6Y6pNhWKSk5FnInBmX2w=; b=RtP3GK1RVDPSWKJEKssH9abVhJFX8AFXwcQPp7pEunX3crtL3etms7N9XSzkfarXm7 QiejAoiLZVwohHZcGmwDwLQdYJtyjV/D5UaXxJCIfZ4qJJCQ8uGtOA3ahE7/1ayXbn1M 8cXuH+7gtRwj74txBbvvDcYclKdE8TBvs8v0o=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=E8X5MofoNHh66RlNrg4rFd+s7zet3GYAPYNtpSDzd8pkzjMDhjuGXJFC1iG8cePe2n pzYYujddBwb5Pe+v4pFUgbUIe8Y1rwkowv9mWHpHCdr8HyDYqe9BF0H0y+8947dOPDnB rU/hzgDv9wRgTmURTRx+9zvf/ksT6leHxG994=
  • In-reply-to: <20090221144632.GM31016@xxxxxxxxxxxxx>
  • References: <20090221144632.GM31016@xxxxxxxxxxxxx>

äÏÂÒÙÊ ÄÅÎØ! ðÏÄÓËÁÖÉÔÅ, ÐÏÓÔÏÑÎÎÏ ×ÁÌÉÔÓÑ ÅÒÒÏÒÙ ÔÁÊÍÁÕÔÁ, ÞÉÔÁÌ ÐÏÈÏÖÉÅ ÔÅÍÙ, ÎÏ ÄÌÑ ÓÅÂÑ ÒÅÛÅÎÉÑ ÔÁË É ÎÅ ÎÁÛÅÌ...

2009/02/25 19:59:06 [error] 8816#0: *19469 upstream timed out (110: Connection timed out) while connecting to upstream, client: 91.78.210.159, server: www.esosedi.ru, request: "GET /1223280237-17559de6257cca69c457198ba6462a22.jsf HTTP/1.1", upstream: "http://172.16.128.2:81/1223280237-17559de6257cca69c457198ba6462a22.jsf", host: "www.esosedi.ru", referrer: "http://www.esosedi.ru/onmap/gipermarket_karusel/3079373/index.html"
2009/02/25 19:59:06 [error] 8816#0: *19535 upstream timed out (110: Connection timed out) while connecting to upstream, client: 77.108.94.124, server: www.esosedi.ru, request: "POST /loader/chat/ask_what_to_do.php?live=723553&lat=55743545&lng=37597962&z=10&a=0 HTTP/1.1", upstream: "http://172.16.128.2:81/loader/chat/ask_what_to_do.php?live=723553&lat=55743545&lng=37597962&z=10&a=0", host: "www.esosedi.ru", referrer: "http://www.esosedi.ru/"
2009/02/25 19:59:06 [error] 8816#0: *19528 upstream timed out (110: Connection timed out) while connecting to upstream, client: 81.94.27.207, server: www.esosedi.ru, request: "GET /img/loc/flags/1906_16.img HTTP/1.0", upstream: "http://172.16.128.2:81/img/loc/flags/1906_16.img", host: "www.esosedi.ru", referrer: "http://www.esosedi.ru/loc/rossiya/sverdlovskaya_oblast/polevskoy/1905/index.html"
2009/02/25 19:59:07 [error] 8816#0: *19568 upstream timed out (110: Connection timed out) while connecting to upstream, client: 77.88.33.146, server: www.esosedi.ru, request: "GET /onmap/aeroport_izhevsk/1848317/index.html HTTP/1.0", upstream: "http://172.16.128.2:81/onmap/aeroport_izhevsk/1848317/index.html", host: "www.esosedi.ru"
2009/02/25 19:59:07 [error] 8816#0: *19566 upstream timed out (110: Connection timed out) while connecting to upstream, client: 81.94.27.207, server: crawler.kashey.ru, request: "GET /piC/http://www.esosedi.ru/imgs/pic/spot.gif HTTP/1.0", upstream: "http://172.16.128.2:81/piC/http:/www.esosedi.ru/imgs/pic/spot.gif", host: "crawler.kashey.ru", referrer: "http://www.esosedi.ru/loc/rossiya/sverdlovskaya_oblast/polevskoy/1905/index.html"
2009/02/25 19:59:07 [error] 8816#0: *19572 upstream timed out (110: Connection timed out) while connecting to upstream, client: 81.94.27.207, server: crawler.kashey.ru, request: "GET /piC/111969_100px-Coat_of_Arms_of_Pervouralsk_(Sverdlovsk_oblast).png/trumb/16x16/ HTTP/1.0", upstream: "http://172.16.128.2:81/piC/111969_100px-Coat_of_Arms_of_Pervouralsk_(Sverdlovsk_oblast).png/trumb/16x16/", host: "crawler.kashey.ru", referrer: "http://www.esosedi.ru/loc/rossiya/sverdlovskaya_oblast/polevskoy/1905/index.html"
2009/02/25 19:59:08 [error] 8816#0: *19656 upstream timed out (110: Connection timed out) while connecting to upstream, client: 78.106.253.85, server: www.esosedi.ru, request: "GET /rsh_blank.html?lat=55714741&lng=37627230&z=17&v=0 HTTP/1.1", upstream: "http://172.16.128.2:81/rsh_blank.html?lat=55714741&lng=37627230&z=17&v=0", host: "www.esosedi.ru", referrer: "http://www.esosedi.ru/onmap/Zabroshennyiy_dom/7697600/index.html"


÷ÏÔ ËÏÎÆÉÇ

userš apache;
worker_processesš 1;
worker_rlimit_nofile 10240;
worker_rlimit_sigpending 32768;

events {
ššš worker_connectionsš 8192;
}

http {
ššš includešššššš /etc/mime.types.1;
ššš default_typeš application/octet-stream;
ššš server_names_hash_bucket_size 64;
ššš log_formatš mainš '$remote_addr - $remote_user [$time_local] $status '
ššššššššššššššššššššš '"$request" $body_bytes_sent "$http_referer" '
ššššššššššššššššššššš '"$http_user_agent" "http_x_forwarded_for"';
šššš proxy_max_temp_file_sizeš 0;
šššš fastcgi_temp_path /var/spool/nginx/tmp;
šššš client_body_temp_path /var/spool/nginx/tmp;

ššš access_logš off;
ššš error_logš /var/log/nginx/error.log warn;
ššš sendfilešššššš on;
ššš tcp_nopushšššš on;
ššš tcp_nodelayššš on;
ššš open_file_cacheššššššššš max=1000š inactive=5m;


upstreamš sosedi-myupš {
ššš serveršš 172.16.128.2:81ššššššš weight=6;
ššš serveršš 172.16.128.2:81ššššššš backup;
}

šserver {
ššššššš listenšššššš 80;
#ššššššš access_logš /var/log/ngnix/access.logš main;
#ššššššš error_logš /var/log/ngnix/error.logš info;
ššššššš server_nameš www.esosedi.ru esosedi.ru;
ššššššš # Main location
ššššššš location / {
ššššššššššš proxy_passšššššššš http://sosedi-myup/;

ššššššššššš 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;

ššššššššššš client_max_body_sizešššššš 10m;
ššššššššššš client_body_buffer_sizeššš 128k;

ššššššššššš proxy_connect_timeoutššššš 90;
ššššššššššš proxy_send_timeoutšššššššš 90;
ššššššššššš proxy_read_timeoutšššššššš 90;
ššššššššššš proxy_buffering On;
ššššššššššš proxy_buffer_sizeššššššššš 4k;
ššššššššššš proxy_buffersššššššššššššš 32 64k;
ššššššššššš proxy_busy_buffers_sizeššš 64k;
ššššššššššš proxy_temp_file_write_size 64k;
ššššššš }

šš location ~* ^.+\.(xy)$ {
šššššššššššššššššššššš add_header Content-type "text/plain; charset=UTF-8";
šššššššššššššššššššššš add_header Content-Encoding gzip;
šššššššššššššššššššššš expires -1h;
šššššššššššššššššššššš root /var/www/esosedi/ztile;
šššššššššššššššššššššš error_pagešš 404š =š @ws2;
ššššššššššš }

ššššššš location @ws2 {
ššššššššššš proxy_passšššššššš http://172.16.128.2:81;

ššššššššššš 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;

ššššššššššš client_max_body_sizešššššš 10m;
ššššššššššš client_body_buffer_sizeššš 128k;

ššššššššššš proxy_connect_timeoutššššš 90;
ššššššššššš proxy_send_timeoutšššššššš 90;
ššššššššššš proxy_read_timeoutšššššššš 90;
ššššššššššš proxy_buffering On;
ššššššššššš proxy_buffer_sizeššššššššš 4k;
ššššššššššš proxy_buffersššššššššššššš 32 64k;
ššššššššššš proxy_busy_buffers_sizeššš 64k;
ššššššš }


ššššššš # Static files location
šššššš location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js|swf|txt|ico|p2p)$ {
šššššššššš rootšš /var/www/esosedi;
ššššššš }
ššš }

}

[root@i-stroy2 local]# cat /proc/sys/fs/file-max
100000
[root@i-stroy2 local]# ulimit -n
90000

--
best regards,
Fit Evgeny


--
best regards,
Fit Evgeny


 




Copyright © Lexa Software, 1996-2009.