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 nginx conf

Andras Bacsaidbe6d8ef20ad
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index e09ae74f1d..2f0a3ac2a7 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -4072,9 +4072,11 @@ function defaultNginxConfiguration(): string
try_files $uri $uri/index.html =404;
}
- error_page 500 502 503 504 /50x.html;
+ error_page 500 502 503 504 /50x.html;
location = /50x.html {
- root /usr/share/nginx/html;
+ root /usr/share/nginx/html;
+ try_files $uri @redirect_to_index;
+ internal;
}
error_page 404 = @handle_404;