nginx.conf配置文件
worker_processes 1;
#worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000;
worker_rlimit_nofile 20480;
error_log logs/error.log;
#error_log logs/error.log info;
pid logs/nginx.pid;
events {
use epoll;
worker_connections 5120;
multi_accept on;
}
#google_perftools_profiles /tmp/tcmalloc;
http {
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 256;
client_header_buffer_size 256k;
large_client_header_buffers 4 256k;
client_max_body_size 100m;
server_name_in_redirect off;
log_format main '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent $host '
'"$upstream_addr" "$upstream_response_time" "$http_user_agent" "$http_referer" "$gzip_ratio"';
log_format logpush '"$time_local" "$remote_addr" "$http_x_forwarded_for" "$request" "$uri" "$status" "$http_user_agent" "$http_referer"';
log_format yunwei '[$time_local] $remote_addr $http_x_forwarded_for "$request" $status $body_bytes_sent '
#worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000;
worker_rlimit_nofile 20480;
error_log logs/error.log;
#error_log logs/error.log info;
pid logs/nginx.pid;
events {
use epoll;
worker_connections 5120;
multi_accept on;
}
#google_perftools_profiles /tmp/tcmalloc;
http {
include mime.types;
default_type application/octet-stream;
server_names_hash_bucket_size 256;
client_header_buffer_size 256k;
large_client_header_buffers 4 256k;
client_max_body_size 100m;
server_name_in_redirect off;
log_format main '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent $host '
'"$upstream_addr" "$upstream_response_time" "$http_user_agent" "$http_referer" "$gzip_ratio"';
log_format logpush '"$time_local" "$remote_addr" "$http_x_forwarded_for" "$request" "$uri" "$status" "$http_user_agent" "$http_referer"';
log_format yunwei '[$time_local] $remote_addr $http_x_forwarded_for "$request" $status $body_bytes_sent '