Last active
November 3, 2016 08:39
-
-
Save kholidfu/e533db6145965a2651e5feb56e09e093 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
location /images/ { | |
autoindex on; | |
alias /home/banteng/git/blooms/app/assets/; | |
} | |
# maka jika kita punya URL /images/11/03/blabla.jpg akan otomatis ter-map ke dir app/assets/11/03/blabla.jpg | |
# nice! tidak perlu ubah folder name!!! | |
reference: http://stackoverflow.com/questions/1474374/nginx-doesnt-serve-static |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment