Skip to content

Instantly share code, notes, and snippets.

@williamn
Last active May 13, 2016 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save williamn/5a776d0c48868b6ee5bda39693c2b59b to your computer and use it in GitHub Desktop.
Save williamn/5a776d0c48868b6ee5bda39693c2b59b to your computer and use it in GitHub Desktop.
Rails 4, nginx and Passenger
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