Commit 14d2801f1826da6d3321e9e705b63b7235f38b6c
1 parent
e3065003
fix nginx.conf
Showing
1 changed file
with
23 additions
and
3 deletions
conf/nginx/nginx.conf
... | ... | @@ -7,7 +7,8 @@ pid /var/run/nginx.pid; |
7 | 7 | |
8 | 8 | |
9 | 9 | events { |
10 | - worker_connections 1024; | |
10 | + worker_connections 100001; | |
11 | + multi_accept on; | |
11 | 12 | } |
12 | 13 | |
13 | 14 | |
... | ... | @@ -21,10 +22,29 @@ http { |
21 | 22 | |
22 | 23 | access_log /var/log/nginx/access.log main; |
23 | 24 | |
24 | - sendfile on; | |
25 | + # sendfile on; | |
25 | 26 | #tcp_nopush on; |
26 | 27 | |
27 | - keepalive_timeout 65; | |
28 | + keepalive_timeout 90; | |
29 | + | |
30 | + server_tokens off; | |
31 | + server_names_hash_bucket_size 128; | |
32 | + client_max_body_size 700m; | |
33 | + client_header_buffer_size 128k; | |
34 | + large_client_header_buffers 4 64k; | |
35 | + sendfile on; | |
36 | + tcp_nopush on; | |
37 | + tcp_nodelay on; | |
38 | + | |
39 | + | |
40 | + fastcgi_connect_timeout 3000; | |
41 | + fastcgi_send_timeout 3000; | |
42 | + fastcgi_read_timeout 3000; | |
43 | + fastcgi_buffer_size 128k; | |
44 | + fastcgi_buffers 8 128k; | |
45 | + fastcgi_busy_buffers_size 128k; | |
46 | + fastcgi_temp_file_write_size 256k; | |
47 | + fastcgi_hide_header X-Powered-By; | |
28 | 48 | |
29 | 49 | #gzip on; |
30 | 50 | ... | ... |