Skip to content

Instantly share code, notes, and snippets.

@mehaase
Created January 18, 2017 20:59
Show Gist options
  • Save mehaase/580c5ec24b839aeaec6881d32649c1bd to your computer and use it in GitHub Desktop.
Save mehaase/580c5ec24b839aeaec6881d32649c1bd to your computer and use it in GitHub Desktop.
server {
# ...other server stuff here, e.g. TLS...
location / {
rewrite ^/(packages/.*|index.html|main\..*) /$1 break;
rewrite ^/.* /index.html;
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment