Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user nobody;
- # no need for more workers in the proxy mode
- worker_processes 24;
- error_log /var/log/nginx/error.log crit;
- #worker_rlimit_nofile 20480;
- events {
- worker_connections 109024; # increase for busier servers
- use epoll; # you should use epoll here for Linux kernels 2.6.x
- }
- http {
- server_name_in_redirect off;
- server_names_hash_max_size 2048;
- server_names_hash_bucket_size 256;
- include mime.types;
- default_type application/octet-stream;
- server_tokens off;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 20;
- ignore_invalid_headers on;
- client_header_timeout 50m;
- client_body_timeout 50m;
- send_timeout 20m;
- reset_timedout_connection on;
- connection_pool_size 2048;
- client_header_buffer_size 256k;
- large_client_header_buffers 4 256k;
- client_max_body_size 20M;
- client_body_buffer_size 300k;
- request_pool_size 32k;
- output_buffers 14 32k;
- postpone_output 1460;
- proxy_temp_path /tmp/nginx_proxy/;
- proxy_cache_path /dev/shm/nginx levels=1:2 keys_zone=wwwcache:45m inactive=5m max_size=1000m;
- client_body_in_file_only off;
- access_log off;
- open_log_file_cache off;
- #log_format bytes_log "$msec $bytes_sent .";
- include "/etc/nginx/vhosts/*";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement