Skip to content

Instantly share code, notes, and snippets.

@ozeias
Created January 14, 2009 20:55
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 ozeias/47069 to your computer and use it in GitHub Desktop.
Save ozeias/47069 to your computer and use it in GitHub Desktop.
nginx.conf
## railsbox.org:~ ozeias$ vim /usr/local/nginx/conf/nginx.conf
user www-data;
worker_processes 4;
error_log /usr/local/nginx/logs/error.log;
pid /usr/local/nginx/logs/nginx.pid;
events {
worker_connections 1024;
}
http {
charset utf-8;
server_names_hash_bucket_size 128;
include /usr/local/nginx/conf/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"';
access_log /usr/local/nginx/logs/access_main.log main;
error_log /usr/local/nginx/logs/error_main.log debug;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/html text/css application/x-javascript text/javascript;
include /usr/local/nginx/conf/vhosts/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment