Skip to content

Instantly share code, notes, and snippets.

@juev
Created May 30, 2011 17:51
Show Gist options
  • Save juev/999218 to your computer and use it in GitHub Desktop.
Save juev/999218 to your computer and use it in GitHub Desktop.
nginx.conf for my sites
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
use epoll;
worker_connections 1024;
multi_accept on;
}
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
sendfile on;
tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
limit_zone slimits $binary_remote_addr 1m;
limit_conn slimits 5;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment