Created
December 5, 2010 14:13
-
-
Save jcxplorer/729112 to your computer and use it in GitHub Desktop.
Simple nginx configuration
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
worker_processes 2; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
events { | |
use epoll; | |
worker_connections 1024; | |
} | |
http { | |
passenger_root /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.4; | |
passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.2-p180/ruby; | |
default_type application/octet-stream; | |
include mime.types; | |
keepalive_timeout 65; | |
sendfile on; | |
tcp_nodelay off; | |
tcp_nopush on; | |
gzip on; | |
gzip_http_version 1.1; | |
gzip_comp_level 2; | |
gzip_proxied any; | |
gzip_min_length 1100; | |
gzip_buffers 16 8k; | |
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json; | |
gzip_disable "msie6"; | |
include /opt/nginx/conf/sites-enabled/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment