ПРОЕКТЫ 


  АРХИВ 


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]

Как лучше?


  • To: nginx-ru@xxxxxxxxx
  • Subject: Как лучше?
  • From: "DaNko" <nginx-forum@xxxxxxxx>
  • Date: Thu, 23 Aug 2012 15:42:57 -0400 (EDT)
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tigger.jlkhosting.com; s=x; h=From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To:Date; bh=Dk98klGx54WmRZhqAvou0uckAVvOBS49veg+wUmExIU=; b=B+KPbw+hVmxvhLWNc9/vNihhUhsL4RI9Qc6FC3OPZO0fPiqMama7GpCh3V6POwkgBN+Txq/bfcIIQd9J05TOC3PNZBATDIcfPLXydkzyAjF/T++thlBpeV5o6o/s4hHM;

types_hash_max_size (Оптимальное значение под CPU Core i7 920)
server_names_hash_bucket_size (Оптимальное значение под CPU Core i7 920)

multi_accept (Нужно ли включать ?)


Лучше так включать gzip ?
gzip on;
gzip_disable "msie6";

Или так?
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/x-javascript
text/xml application/xml application/xml+rss text/javascript;


И что ещё можно добавить для улучшение/ускорения работы?






Полный nginx.conf

user www-data;
worker_processes 2;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
# multi_accept on;
}

http {

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
client_max_body_size 120m;
server_names_hash_bucket_size 64;
# server_name_in_redirect off;

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

access_log off;
error_log off;

gzip on;
gzip_disable "msie6";

# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# 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/*;
}

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

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


 




Copyright © Lexa Software, 1996-2009.