Skip to content

Instantly share code, notes, and snippets.

@fmd
Created January 13, 2013 00:12
Show Gist options
  • Save fmd/4521181 to your computer and use it in GitHub Desktop.
Save fmd/4521181 to your computer and use it in GitHub Desktop.
Suppose you have a Ruby on Rails application in /somewhere. Add a server block
to your Nginx configuration file, set its root to /somewhere/public, and set
'passenger_enabled on', like this:
server {
listen 80;
server_name www.yourhost.com;
root /somewhere/public; # <--- be sure to point to 'public'!
passenger_enabled on;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment