Skip to content

Instantly share code, notes, and snippets.

@otype
Created June 28, 2009 20:49
Show Gist options
  • Save otype/137365 to your computer and use it in GitHub Desktop.
Save otype/137365 to your computer and use it in GitHub Desktop.
user www-data www-data;
worker_processes 4;
events {
worker_connections 1024;
}
http {
#passenger_root /usr/lib/ruby/gems/1.9/gems/passenger-2.2.2;
#passenger_ruby /usr/bin/ruby1.9;
passenger_root /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4;
passenger_ruby /usr/bin/ruby1.8;
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
keepalive_timeout 10 10;
gzip on;
gzip_comp_level 1;
gzip_proxied any;
#gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx_access.log main;
error_log /var/log/nginx_error.log debug;
include /opt/nginx/sites-enabled/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment