Skip to content

Instantly share code, notes, and snippets.

@reqshark
Created May 3, 2012 03:14
Show Gist options
  • Select an option

  • Save reqshark/2582765 to your computer and use it in GitHub Desktop.

Select an option

Save reqshark/2582765 to your computer and use it in GitHub Desktop.
basic nginx conf directory
worker_processes 4;
events
{
worker_connections 1024;
}
http
{
include mime.types;
default_type application/octet-stream;
server_names_hash_max_size 4096;
server_names_hash_bucket_size 4096;
#proxy settings (only relevant when nginx used as a proxy)
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
keepalive_timeout 65;
sendfile on;
gzip on;
ssi on;
#tcp_nopush on;
include /etc/nginx/sites-enabled/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment