Skip to content

Instantly share code, notes, and snippets.

@ksamuel
Created July 18, 2011 11:48
Show Gist options
  • Save ksamuel/1089283 to your computer and use it in GitHub Desktop.
Save ksamuel/1089283 to your computer and use it in GitHub Desktop.
user nginx;
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
worker_rlimit_nofile 16384;
events {
worker_connections 2048;
use epoll;
multi_accept on;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
error_log /tmp/error.log;
open_file_cache max=1000 inactive=20s;
open_file_cache_valid 30s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
output_buffers 4 512k;
postpone_output 1460;
sendfile on;
aio on;
directio 512;
tcp_nopush on;
read_ahead 256k;
keepalive_timeout 15;
tcp_nodelay on;
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
location /nginx_status {
stub_status on;
access_log off;
allow all;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
include /usr/local/nginx/conf.d/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment