Created
November 4, 2011 03:16
-
-
Save fsouza/1338580 to your computer and use it in GitHub Desktop.
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 nginx; | |
worker_processes 1; | |
error_log logs/error.log; | |
pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
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"'; | |
proxy_cache_path /opt/nginx/cache/data/agnhesi levels=1:2 keys_zone=agnhesi:10m; | |
proxy_cache_path /opt/nginx/cache/data/dbgeeks levels=1:2 keys_zone=dbgeeks:10m; | |
proxy_cache_path /opt/nginx/cache/data/fscom levels=1:2 keys_zone=fscom:10m; | |
proxy_cache_path /opt/nginx/cache/data/fscombr levels=1:2 keys_zone=fscombr:10m; | |
proxy_cache_path /opt/nginx/cache/data/missi levels=1:2 keys_zone=missi:10m; | |
proxy_cache_path /opt/nginx/cache/data/wbotelhos levels=1:2 keys_zone=wbotelhos:10m; | |
access_log logs/access.log main; | |
sendfile on; | |
keepalive_timeout 65; | |
tcp_nodelay on; | |
gzip on; | |
gzip_http_version 1.0; | |
gzip_proxied any; | |
gzip_comp_level 5; | |
gzip_types text/plain application/xml text/css application/json application/x-javascript text/xml application/xml+rss text/javascript; | |
gzip_buffers 16 8k; | |
gzip_vary on; | |
include /opt/nginx/sites-enabled/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment