1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
user nobody nobody;
worker_processes 1;
error_log
/usr/local/nginx/logs/nginx_error
.log crit;
pid
/usr/local/nginx/logs/nginx
.pid;
worker_rlimit_nofile 51200;
events
{
use epoll;
worker_connections 6000;
}
http
{
include mime.types;
default_type application
/octet-stream
;
server_names_hash_bucket_size 3526;
server_names_hash_max_size 4096;
log_format combined_realip
'$remote_addr $http_x_forwarded_for [$time_local]'
'$host "$request_uri" $status'
'"$http_referer" "$http_user_agent"'
;
sendfile on;
tcp_nopush on;
keepalive_timeout 30;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
connection_pool_size 256;
client_header_buffer_size 1k;
large_client_header_buffers 8 4k;
request_pool_size 4k;
output_buffers 4 32k;
postpone_output 1460;
client_max_body_size 10m;
client_body_buffer_size 256k;
client_body_temp_path
/usr/local/nginx/client_body_temp
;
proxy_temp_path
/usr/local/nginx/proxy_temp
;
fastcgi_temp_path
/usr/local/nginx/fastcgi_temp
;
fastcgi_intercept_errors on;
tcp_nodelay on;
gzip
on;
gzip_min_length 1k;
gzip_buffers 4 8k;
gzip_comp_level 5;
gzip_http_version 1.1;
gzip_types text
/plain
application
/x-javascript
text
/css
text
/htm
application
/xml
;
include vhosts/*.conf;
}
|
本文转自limingyu0312 51CTO博客,原文链接:http://blog.51cto.com/limingyu/1904769,如需转载请自行联系原作者