|
@@ -1,7 +1,8 @@
|
|
|
# Server globals
|
|
# Server globals
|
|
|
user www-data;
|
|
user www-data;
|
|
|
-worker_processes 2;
|
|
|
|
|
-error_log /var/log/nginx/error.log;
|
|
|
|
|
|
|
+worker_processes auto;
|
|
|
|
|
+worker_rlimit_nofile 65535;
|
|
|
|
|
+error_log /var/log/nginx/error.log crit;
|
|
|
pid /var/run/nginx.pid;
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -9,6 +10,7 @@ pid /var/run/nginx.pid;
|
|
|
events {
|
|
events {
|
|
|
worker_connections 1024;
|
|
worker_connections 1024;
|
|
|
use epoll;
|
|
use epoll;
|
|
|
|
|
+ multi_accept on;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -37,7 +39,7 @@ http {
|
|
|
'"$status" $body_bytes_sent "$http_referer" '
|
|
'"$status" $body_bytes_sent "$http_referer" '
|
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
|
log_format bytes '$body_bytes_sent';
|
|
log_format bytes '$body_bytes_sent';
|
|
|
- #access_log /var/log/nginx/access.log main;
|
|
|
|
|
|
|
+ #access_log /var/log/nginx/access.log main;
|
|
|
access_log off;
|
|
access_log off;
|
|
|
|
|
|
|
|
|
|
|
|
@@ -51,9 +53,9 @@ http {
|
|
|
gzip_comp_level 9;
|
|
gzip_comp_level 9;
|
|
|
gzip_min_length 512;
|
|
gzip_min_length 512;
|
|
|
gzip_buffers 8 64k;
|
|
gzip_buffers 8 64k;
|
|
|
- gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml application/x-font-ttf font/opentype;
|
|
|
|
|
|
|
+ gzip_types text/plain text/css text/javascript text/js text/xml application/json application/javascript application/x-javascript application/xml application/xml+rss application/x-font-ttf image/svg+xml font/opentype;
|
|
|
gzip_proxied any;
|
|
gzip_proxied any;
|
|
|
-
|
|
|
|
|
|
|
+ gzip_disable "MSIE [1-6]\.";
|
|
|
|
|
|
|
|
# Proxy settings
|
|
# Proxy settings
|
|
|
proxy_redirect off;
|
|
proxy_redirect off;
|