File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
install/ubuntu/16.04/nginx Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 11# Server globals
22user www-data;
3- worker_processes 2;
4- error_log /var/log/nginx/error.log;
3+ worker_processes auto;
4+ worker_rlimit_nofile 65535 ;
5+ error_log /var/log/nginx/error.log crit;
56pid /var/run/nginx.pid ;
67
78
89# Worker config
910events {
1011 worker_connections 1024 ;
1112 use epoll;
13+ multi_accept on;
1214}
1315
1416
3739 '"$status" $body_bytes_sent "$http_referer" '
3840 '"$http_user_agent" "$http_x_forwarded_for"' ;
3941 log_format bytes '$body_bytes_sent' ;
40- #access_log /var/log/nginx/access.log main;
42+ #access_log /var/log/nginx/access.log main;
4143 access_log off;
4244
4345
5153 gzip_comp_level 9;
5254 gzip_min_length 512 ;
5355 gzip_buffers 8 64k ;
54- 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;
56+ 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;
5557 gzip_proxied any;
56-
58+ gzip_disable "MSIE [1-6] \. " ;
5759
5860 # Proxy settings
5961 proxy_redirect off;
You can’t perform that action at this time.
0 commit comments