Skip to content

Instantly share code, notes, and snippets.

@why404
Created December 29, 2009 15:12
Show Gist options
  • Select an option

  • Save why404/265360 to your computer and use it in GitHub Desktop.

Select an option

Save why404/265360 to your computer and use it in GitHub Desktop.
Nginx configuration example(without virtual hosts yet), come here to see the annotation: http://gist.github.com/265368
user www-data www-data;
worker_processes 4;
events {
use epoll;
worker_connections 8000;
}
http {
server_names_hash_bucket_size 64;
passenger_root /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/passenger-2.2.9;
passenger_ruby /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby;
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
keepalive_timeout 15;
gzip on;
gzip_min_length 1000;
gzip_comp_level 8;
gzip_proxied any;
gzip_types text/plain text/css text/javascript text/xml application/x-javascript application/xml application/xml+rss;
include /opt/nginx/sites-enabled/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment