Skip to content

Instantly share code, notes, and snippets.

@dj2bee
Forked from cjus/sample-nginx.conf
Created April 11, 2016 08:33
Show Gist options
  • Save dj2bee/cb8396c3c246dea6994baa5df2ada9b3 to your computer and use it in GitHub Desktop.
Save dj2bee/cb8396c3c246dea6994baa5df2ada9b3 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