Skip to content

Instantly share code, notes, and snippets.

@soffes
Created February 25, 2010 18:45
Show Gist options
  • Save soffes/314883 to your computer and use it in GitHub Desktop.
Save soffes/314883 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name example.com;
root /var/www/example.com/public;
#rails_env development;
passenger_enabled on;
charset utf-8;
}
user nginx nginx;
worker_processes 5;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
# Passenger
passenger_root /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.0;
passenger_ruby /usr/local/bin/ruby;
passenger_default_user nginx;
sendfile on;
keepalive_timeout 65;
# Include virtual host configurations
include virtual_hosts/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment