Last active
May 13, 2016 04:37
-
-
Save williamn/5a776d0c48868b6ee5bda39693c2b59b to your computer and use it in GitHub Desktop.
Rails 4, nginx and Passenger
This file contains hidden or 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; | |
server_name ums.harukaeduapps.com; | |
# Tell Nginx and Passenger where your app's 'public' directory is | |
root /home/deploy/htdocs/ums/current/public; | |
# Turn on Passenger | |
passenger_enabled on; | |
location ~ ^/assets/ { | |
expires 1y; | |
add_header Cache-Control public; | |
add_header ETag ""; | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment