ðòïåëôù 


  áòèé÷ 


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



úÄÒÁ×ÓÔ×ÕÊÔÅ, áÌÅËÓÅÊ.

óÕÄÑ ÐÏ http://tr.xtlt.ru/nginx_status ÎÁÇÒÕÚËÁ ÎÅÂÏÌØÛÁÑ. ÷ÏÚÍÏÖÎÏ
ÐÒÏÓÔÏ ÎÅ È×ÁÔÁÅÔ ËÁËÉÈ-ÔÏ ÂÕÆÅÒÏ× OS ÉÌÉ firewall-Å ? ðÒÏ ÔÀÎÉÎÇ
FreeBSD ÔÕÔ http://www.profyclub.org/articles/290/3037 . ðÒÏ ìÉÎÕÈ ÎÅ
ÚÎÁÀ ÇÄÅ ÁÎÁÌÏÇÉÞÎÏÅ ÐÏÉÓËÁÔØ...

áú> ðÒÉ×ÅÔÓÔ×ÕÀ ×ÓÅÈ, ×ÏÚÎÉË ÓÌÅÄÕÀÝÉÊ ×ÏÐÒÏÓ
áú> ÷ ÇÏÒÏÄÓËÏÊ ÓÅÔÉ ÐÏÄÎÑÔ ÔÏÒÒÅÎÔ-ÔÒÅËÅÒ, 20000 ÐÏÌØÚÏ×ÁÔÅÌÅÊ,
áú> ÐÒÉÍÅÒÎÏ 5000 ÕÎÉËÏ× × ÓÕÔËÉ, É 4000 ÏÄÎÏ×ÒÅÍÅÎÎÏ ÐÏÄËÌÀÞÅÎÎÙÈ
áú> ÔÏÒÒÅÎÔ ËÌÉÅÎÔÏ×.
áú> ÷ÓÅ ÜÔÏ ÒÅÁÌÉÚÏ×ÁÎÏ ÎÁ nginx + fast-cgi, fcgi É nginx
áú> ÐÒÉËÒÕÞÅÎÙ ÞÅÒÅÚ unix socket, Ä×ÉÖÅË ÔÒÅËÅÒÁ - torrentpier.
áú> ëÏÎÆÉÇÕÒÁÃÉÑ ÖÅÌÅÚËÉ: 2*XeonE5410 / 8Gb / RAID0+1
áú> ÷ ÐÉË ÎÁÇÒÕÚËÉ ÎÁÞÁÌ ÎÁÂÌÀÄÁÔØ ÔÁËÉÅ ÐÒÏÂÌÅÍÙ, ÓÔÒÁÎÉÞËÉ
áú> ÞÅÒÅÚ ÒÁÚ ÔÏ ÏÔËÒÙ×ÁÀÔÓÑ Ó ÏÔÌÉÞÎÏÊ ÓËÏÒÏÓÔØ, ÔÏ ÚÁ×ÉÓÁÅÔ ÎÁ
áú> ÚÁÇÒÕÚËÅ ÏÔ 10 ÄÏ 200 ÓÅËÕÎÄ, ÐÒÉÞÅÍ ÐÏÓÌÅ ÚÁÇÒÕÚËÉ ÐÏËÁÚÙ×ÁÅÔÓÑ
áú> ÞÔÏ ÐÈÐ ÇÅÎÅÒÉÔÓÑ ËÁË É ÏÂÙÞÎÏ ÚÁ 0,056ÓÅË. 
áú> ðÏÐÒÏÂÏ×ÁÌ ÉÓÐÙÔÁÔØ ÞÅÒÅÚ ab ÐÒÏÓÔÏ ÓÔÁÔÉÞÎÕÀ ËÁÒÔÉÎËÕ,
áú> ÜÆÆÅËÔ ÔÏÔÖÅ, ÐÒÏÓÔÏ ÎÁÇÌÕÈÏ ×ÉÓÎÅÔ ÔÅÓÔ É ×ÓÅ. ÷ ÜÔÏ ×ÒÅÍÑ ×
áú> ÎÅÔÓÔÁÔÅ ËÌÉÅÎÔÁ ×ÉÄÎÏ ÞÔÏ ÓÏÅÄÉÎÅÎÉÑ ×ÉÓÑÔ × SYN_SENT.

áú> ðÅÒÅÐÒÏÂÏ×ÁÌ ÕÖÅ ÂÏÌØÛÉÎÓÔ×Ï ×ÏÚÍÏÖÎÙÈ ×ÁÒÉÁÎÔÏ× ÎÁÊÄÅÎÎÙÈ ×
áú> ÉÎÅÔÅ, ÎÉÞÅÇÏ ÎÅ ÄÁÅÔ ÕÌÕÞÛÅÎÉÑ × ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔÉ.
áú> íÏÖÅÔ ËÔÏ ÓÔÁÌËÉ×ÁÌÓÑ Ó ÐÏÄÏÂÎÏÊ ÐÒÏÂÌÅÍÏÊ, ÐÏÄÓËÁÖÉÔÅ ÒÅÛÅÎÉÅ.

áú> nginx version: nginx/0.7.34

áú> ÷ÏÔ ÐÒÉÍÅÒÎÙÊ ËÏÎÆÉÇ ÜÔÏÇÏ ÞÕÄÁ:
áú> user nginx nginx;
áú> worker_processes 50;
áú> worker_rlimit_nofile 20192;

áú> error_log /var/log/nginx/error_log info;

áú> events {
áú>     worker_connections  50192;
áú>     use epoll;
áú> }

áú> http {
áú>     include        /etc/nginx/mime.types;
áú>     default_type    application/octet-stream;
áú>     client_max_body_size 1000m;
áú>         server_names_hash_bucket_size 64;

áú>     log_format main
áú>         '$remote_addr - $remote_user [$time_local] '
áú>             '"$request" $status $bytes_sent '
áú>         '"$http_referer" "$http_user_agent" '
áú>         '"$gzip_ratio"';
áú>                                            
áú>     client_header_timeout    3m;
áú>     client_body_timeout    3m;
áú>     send_timeout        3m;

áú>     connection_pool_size        2024;
áú>     client_header_buffer_size    1k;
áú>     large_client_header_buffers    4 2k;
áú>     request_pool_size        4k;

áú>     gzip off;
áú> #    gzip_min_length    1100;
áú> #    gzip_buffers    4 8k;
áú> #    gzip_types    text/plain;

áú>     output_buffers    1 32k;
áú>     postpone_output    1460;

áú>     sendfile    on;
áú>     tcp_nopush    on;
áú>     tcp_nodelay    on;

áú>     keepalive_timeout    0;
áú>         lingering_time 30;
áú>         lingering_timeout 2;
áú>         reset_timedout_connection on;

áú> #    ignore_invalid_headers    on;

áú>     index index.html;

áú>     server {
áú>                 listen 80;

áú>                 access_log off;
áú> #                access_log /var/log/nginx/access_tr.log;
áú>                 error_log /var/log/nginx/error_tr.log;
áú>         server_name_in_redirect off;
áú>                 server_name
áú> 
tltorrent.ruwww.tltorrent.rutltorrent.net.ruwww.tltorrent.net.rutr.xtlt.rutest.tr;

áú>         error_page  502  /errors/502.html;
áú>         error_page  403  /errors/403.html; 
áú>         
áú>         location = /nginx_status {
áú>                     stub_status on;
áú>                     access_log   off;
áú>                     allow all;
áú>             }    
áú>         
áú>             location / {
áú>                     root   /var/www/tltorrent;
áú>                     index  index.html index.htm index.php;
áú>                 }

áú>                 location ~ .php$ {
áú> #        fastcgi_pass   127.0.0.1:1026;
áú>                 fastcgi_pass unix:/tmp/fcgi.sock;

áú>                 fastcgi_index  index.php;

áú>         fastcgi_connect_timeout 60;
áú>             fastcgi_read_timeout 60;
áú>             fastcgi_send_timeout 60;

áú>                 fastcgi_param  SCRIPT_FILENAME 
áú> /var/www/tltorrent$fastcgi_script_name;
áú>                 fastcgi_param  QUERY_STRING       $query_string;
áú>                 fastcgi_param  REQUEST_METHOD     $request_method;
áú>                 fastcgi_param  CONTENT_TYPE       $content_type;
áú>                 fastcgi_param  CONTENT_LENGTH     $content_length;

áú>                 fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
áú>                 fastcgi_param  REQUEST_URI        $request_uri;
áú>                 fastcgi_param  DOCUMENT_URI       $document_uri;
áú>                 fastcgi_param  DOCUMENT_ROOT      $document_root;
áú>                 fastcgi_param  SERVER_PROTOCOL    $server_protocol;

áú>                 fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
áú>                 fastcgi_param  SERVER_SOFTWARE    nginx;

áú>                 fastcgi_param  REMOTE_ADDR        $remote_addr;
áú>                 fastcgi_param  REMOTE_PORT        $remote_port;
áú>                 fastcgi_param  SERVER_ADDR        $server_addr;
áú>                 fastcgi_param  SERVER_PORT        $server_port;
áú>                 fastcgi_param  SERVER_NAME        $server_name;
áú>         #$http_x_forwarded_host;
áú>                 fastcgi_param  HTTP_HOST        $http_host;
áú>         #$http_x_forwarded_host;

áú>                 }
áú>                 location /forum/ub/ {
áú>                     rewrite ^/forum/ub/(.*).png$ /forum/ub/ub.php?u=$1;
áú>                 }
áú>  

áú>         }



  

--

ó Õ×ÁÖÅÎÉÅÍ,
íÉÈÁÉÌ íÏÎÁÛ£×, SoftSearch.ru
mailto:postmaster@xxxxxxxxxxxxx
ICQ# 166233339
http://michael.mindmix.ru/
âÅÚ ÂÜËÁÐÁ ÐÏ ÖÉÚÎÉ.




 




Copyright © Lexa Software, 1996-2009.