Skip to content

Instantly share code, notes, and snippets.

@andredublin
Created August 25, 2015 17:13
Show Gist options
  • Select an option

  • Save andredublin/6c028fe1aba4bf7c21dc to your computer and use it in GitHub Desktop.

Select an option

Save andredublin/6c028fe1aba4bf7c21dc to your computer and use it in GitHub Desktop.
Nginx configuration for angularjs
server {
listen 80;
server_name foobar.com www.foobar.com;
index index.html;
root /var/www/mysite;
location / {
try_files $uri$args $uri$args/ index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment