Created
January 13, 2013 00:12
-
-
Save fmd/4521181 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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