Skip to content

Instantly share code, notes, and snippets.

@todesstoss
Forked from cjus/sample-nginx.conf
Created July 10, 2017 13:05
Show Gist options
  • Save todesstoss/9f4e0e4f8fc0f6d8f676fe9dcdb480e9 to your computer and use it in GitHub Desktop.
Save todesstoss/9f4e0e4f8fc0f6d8f676fe9dcdb480e9 to your computer and use it in GitHub Desktop.
AngularJS Nginx and html5Mode
server {
server_name yoursite.com;
root /usr/share/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment