Skip to content

Instantly share code, notes, and snippets.

@yangtheman
Created August 18, 2012 08:24
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 yangtheman/3385289 to your computer and use it in GitHub Desktop.
Save yangtheman/3385289 to your computer and use it in GitHub Desktop.
/etc/nginx/nginx.conf
user www-data;
worker_processes 10;
pid /var/run/nginx.pid;
events
{
worker_connections 1024;
}
http
{
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
# configure log format like to Apache's "combined" log format
log_format main
'$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_cookie"';
# default log files
error_log /mnt/nginx/logs/error.log notice;
access_log /mnt/nginx/logs/access.log main;
include /etc/nginx/rubber/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment