Skip to content

Instantly share code, notes, and snippets.

@malev
Created February 26, 2012 19:21
Show Gist options
  • Save malev/1918436 to your computer and use it in GitHub Desktop.
Save malev/1918436 to your computer and use it in GitHub Desktop.
nginx.conf file
user malev rvm;
worker_processes 2;
events {
worker_connections 1024;
}
http {
passenger_root /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11;
passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.2-p290/ruby;
include mime.types;
default_type application/octet-stream;
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 logs/access.log main;
error_log logs/error.log;
sendfile on;
keepalive_timeout 65;
include /opt/nginx/conf/conf.d/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment