fix: SPA static site default nginx conf

This commit is contained in:
Andras Bacsai
2024-11-15 12:17:26 +01:00
parent 2737da10ae
commit 09ec4fdb6d

View File

@@ -4075,7 +4075,7 @@ function defaultNginxConfiguration(): string
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/index.html =404;
try_files $uri $uri.html $uri/index.html $uri/index.htm $uri/ /index.html /index.htm =404;
}
error_page 500 502 503 504 /50x.html;