Created
February 21, 2016 03:38
-
-
Save gieart87/c563bc630e558cd62967 to your computer and use it in GitHub Desktop.
Deploy Rails App in Sub Directory with Nginx + Ubuntu 14.04
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name example.com; | |
location / { | |
passenger_enabled on; | |
rails_env development; | |
root /var/www/rails/my_app/public; | |
} | |
location /second-app { | |
root /var/www/rails/my_app; | |
passenger_base_uri /second-app; | |
passenger_enabled on; | |
rails_env development; | |
} | |
location /third-app { | |
root /var/www/rails/my_app; | |
passenger_base_uri /third-app; | |
passenger_enabled on; | |
rails_env development; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment