Skip to content

Instantly share code, notes, and snippets.

@gabfr
Last active March 29, 2017 00:33
Show Gist options
  • Save gabfr/5fe42012ba23d6f8e181c36314a3bf7e to your computer and use it in GitHub Desktop.
Save gabfr/5fe42012ba23d6f8e181c36314a3bf7e to your computer and use it in GitHub Desktop.
AngularJS HTML5 NGINX Configuration
server {
listen 80;
server_name foobar.com www.foobar.com;
index index.html;
root /path/to/site; # i.e. /var/www/mysite
location / {
try_files $uri$args $uri$args/ $uri/ /index.html =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment