Skip to content

Instantly share code, notes, and snippets.

@deedubs
Created May 7, 2010 00:56
Show Gist options
  • Save deedubs/392891 to your computer and use it in GitHub Desktop.
Save deedubs/392891 to your computer and use it in GitHub Desktop.
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
accept_mutex off;
use epoll;
}
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"';
# main access log
access_log /var/log/nginx/access.log main;
# main error log
error_log /var/log/nginx/error.log debug;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
# output compression saves bandwidth
gzip on;
gzip_http_version 1.0;
gzip_proxied any;
gzip_min_length 500;
gzip_disable "MSIE [1-6]\.";
gzip_types text/xml text/css
text/comma-separated-values
text/javascript application/x-javascript
application/atom+xml;
include /home/*/*/current/config/nginx.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment