Skip to content

Instantly share code, notes, and snippets.

@javierojeda94
Created December 6, 2018 20:51
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 javierojeda94/dd853f4241a766ec52728856df093271 to your computer and use it in GitHub Desktop.
Save javierojeda94/dd853f4241a766ec52728856df093271 to your computer and use it in GitHub Desktop.
This nginx conf file allows a user to refresh the angular app without getting into 404 and without the need to use # routes
location / {
try_files $uri $uri/ /index.html?$query_string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment