Last active
December 25, 2018 22:29
-
-
Save jbutko/3deda2999c1dee49387d7a74e5eb61b7 to your computer and use it in GitHub Desktop.
Nginx: host static content
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
location /static { | |
alias /path/to/static/files; | |
} | |
# via From https://stackoverflow.com/questions/29383159/how-do-you-serve-static-files-from-an-nginx-server-acting-as-a-reverse-proxy-for | |
# or | |
https://medium.com/@jgefroh/a-guide-to-using-nginx-for-static-websites-d96a9d034940 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment