Created
August 20, 2010 19:01
-
-
Save webgago/540923 to your computer and use it in GitHub Desktop.
nginx config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 2; | |
worker_rlimit_nofile 1000; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1000; | |
use epoll; | |
} | |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
# access_log /var/log/nginx/access.log; | |
sendfile on; | |
#tcp_nopush on; | |
#keepalive_timeout 0; | |
#keepalive_timeout 500; | |
proxy_connect_timeout 75; | |
proxy_read_timeout 1800; | |
proxy_send_timeout 1800; | |
keepalive_timeout 300 300; | |
proxy_buffer_size 4k; | |
proxy_buffering on; | |
server_names_hash_bucket_size 64; | |
tcp_nodelay on; | |
gzip on; | |
proxy_buffers 20 256k; | |
include /etc/nginx/sites-enabled/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment