Created
March 25, 2014 01:32
-
-
Save bobobo1618/9753689 to your computer and use it in GitHub Desktop.
Stripped NGINX Conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data www-data; | |
worker_processes 2; | |
worker_rlimit_nofile 8192; | |
events { | |
worker_connections 8000; | |
accept_mutex off; | |
use epoll; # enable for Linux 2.6+ | |
} | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
log_format main '$remote_addr - $remote_user [$time_local] $status ' | |
'"$request" $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
access_log /var/log/nginx/access.log main; | |
keepalive_timeout 5; | |
sendfile on; | |
tcp_nopush on; # off may be better for Comet/long-poll stuff | |
tcp_nodelay off; # on may be better for Comet/long-poll stuff | |
gzip on; | |
gzip_http_version 1.0; | |
gzip_comp_level 2; | |
gzip_min_length 1100; | |
gzip_buffers 4 8k; | |
gzip_proxied any; | |
gzip_types | |
text/css | |
text/javascript | |
text/xml | |
text/plain | |
text/x-component | |
application/javascript | |
application/json | |
application/xml | |
application/rss+xml | |
font/truetype | |
font/opentype | |
application/vnd.ms-fontobject | |
image/svg+xml; | |
gzip_static on; | |
gzip_proxied expired no-cache no-store private auth; | |
gzip_disable "MSIE [1-6]\."; | |
gzip_vary on; | |
include /etc/nginx/conf.d/*.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment