Skip to content

Instantly share code, notes, and snippets.

@ghostcode
Forked from cjus/sample-nginx.conf
Created January 7, 2017 14:54
Show Gist options
  • Select an option

  • Save ghostcode/e60fca72ac4e3c25a8780eb3eef7caa3 to your computer and use it in GitHub Desktop.

Select an option

Save ghostcode/e60fca72ac4e3c25a8780eb3eef7caa3 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