Skip to content

Instantly share code, notes, and snippets.

@gggritso
Created December 19, 2014 21:58
Show Gist options
  • Save gggritso/2e129197b527cf301064 to your computer and use it in GitHub Desktop.
Save gggritso/2e129197b527cf301064 to your computer and use it in GitHub Desktop.
Nginx configuration for SPA
root /var/www/your_site;
location / {
try_files $uri /index.html;
}
@apostololeg
Copy link

wrap in

server {

}

are required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment