Skip to content

Instantly share code, notes, and snippets.

@saitodev
Created August 17, 2013 16:10
Show Gist options
  • Save saitodev/6257625 to your computer and use it in GitHub Desktop.
Save saitodev/6257625 to your computer and use it in GitHub Desktop.
user nginx;
worker_processes 1;
events {
worker_connections 1024;
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"';
sendfile on;
#tcp_nopush on;
keepalive_timeout 5;
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/x-javascript application/atom+xml application/rss+xml application/xhtml+xml;
gzip_disable "MSIE [1-6]\.";
gzip_static on;
include conf.d/*.conf;
include sites-enabled/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment