Skip to content

Instantly share code, notes, and snippets.

@jimitit
Created March 1, 2016 13:55
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 jimitit/fc76bfffa51232d12c5c to your computer and use it in GitHub Desktop.
Save jimitit/fc76bfffa51232d12c5c to your computer and use it in GitHub Desktop.
Angular + Nginx Configuration
This a dirty solution, but worked for me.
Sacrifice my 404 page, but fix the main problem.
server {
listen 0.0.0.0:12345;
location / {
root /home/zdwolfe/src/angularAWS/app;
try_files $uri $uri/ /index.html =404;
}
error_page 404 /index.html
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment