Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: SPA static site default nginx conf

Andras Bacsai09ec4fdb6dca
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index f746ad7ced..dc49247892 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -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;