Created
August 2, 2012 19:51
-
-
Save zeekay/3240078 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 http; | |
worker_processes 4; | |
#worker_cpu_affinity 0100 1000; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
events { | |
worker_connections 10000; | |
use epoll; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; | |
charset utf-8; | |
log_format main | |
'$remote_addr - $remote_user [$time_local] ' | |
'"$request" $status $bytes_sent ' | |
'"$http_referer" "$http_user_agent" ' | |
'"$gzip_ratio"'; | |
connection_pool_size 256; | |
# client_header_buffer_size 1k; | |
# large_client_header_buffers 4 2k; | |
request_pool_size 4k; | |
access_log off; | |
error_log off; | |
sendfile on; | |
tcp_nodelay on; | |
tcp_nopush on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
gzip off; | |
gzip_static on; | |
gzip_min_length 1000; | |
gzip_proxied any; | |
gzip_types text/plain text/css application/x-javascript application/xml application/atom+xml text/javascript; | |
gzip_vary on; | |
server { | |
listen 80 default; | |
server_name _; | |
server_name_in_redirect off; | |
rewrite ^ http://whatit.is permanent; | |
} | |
include /var/apps/*/etc/nginx.conf; | |
include /var/www/*/etc/nginx.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment