Skip to content

Instantly share code, notes, and snippets.

@sebinpj
Created November 2, 2020 03:51
Show Gist options
  • Save sebinpj/fc0b717ab07b0397f5013fc500015c11 to your computer and use it in GitHub Desktop.
Save sebinpj/fc0b717ab07b0397f5013fc500015c11 to your computer and use it in GitHub Desktop.
nginx.conf for spa's
server {
listen 80;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
include /etc/nginx/extra-conf.d/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment