Skip to content

Instantly share code, notes, and snippets.

@davidhq
Created February 10, 2014 13:18
Show Gist options
  • Save davidhq/8915760 to your computer and use it in GitHub Desktop.
Save davidhq/8915760 to your computer and use it in GitHub Desktop.
worker_processes 1;
error_log /var/log/nginx/error.log debug;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /opt/nginx/conf/mime.types;
default_type application/octet-stream;
passenger_root /usr/local/rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.35;
passenger_ruby /usr/local/rvm/wrappers/ruby-2.0.0-p247/ruby;
passenger_log_level 3;
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;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
include sites/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment