Skip to content

Instantly share code, notes, and snippets.

@jbutko
Last active December 25, 2018 22:29
Show Gist options
  • Save jbutko/3deda2999c1dee49387d7a74e5eb61b7 to your computer and use it in GitHub Desktop.
Save jbutko/3deda2999c1dee49387d7a74e5eb61b7 to your computer and use it in GitHub Desktop.
Nginx: host static content
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