Skip to content

Instantly share code, notes, and snippets.

@tsulatsitamim
Last active March 17, 2024 02:37
Show Gist options
  • Save tsulatsitamim/f8a3c61d7b8b9554efae55a997d18322 to your computer and use it in GitHub Desktop.
Save tsulatsitamim/f8a3c61d7b8b9554efae55a997d18322 to your computer and use it in GitHub Desktop.
nginx-spa
server {
listen 8080;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ $uri.html /index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment