Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@libbkmz
Created September 30, 2012 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libbkmz/3806599 to your computer and use it in GitHub Desktop.
Save libbkmz/3806599 to your computer and use it in GitHub Desktop.
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
timer_resolution 100ms;
worker_rlimit_nofile 65535;
worker_priority -2;
events {
worker_connections 32768;
multi_accept on;
}
http {
##
# Basic Settings
##
##
# Logging Settings
##
error_log /var/log/nginx/error.log;
# log_not_found off;
log_format combined2 '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$host" '
'"$body_bytes_sent" "$request_time" gzip-"$gzip_ratio"';
access_log /var/log/nginx/access.log combined2;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
##
# Client Configs
##
client_body_buffer_size 128k;
client_body_timeout 10s;
client_header_timeout 10s;
client_header_buffer_size 4k;
client_max_body_size 64M;
large_client_header_buffers 16 8k;
postpone_output 0;
output_buffers 32 512k;
##
# Proxies Configs
##
proxy_buffer_size 32k;
proxy_buffering off;
proxy_buffers 32 32k;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
include /usr/local/ispmgr/etc/nginx.domain;
log_format isp '$bytes_sent $request_length';
server_names_hash_max_size 4096;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment