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 try_files

Andras Bacsai5570cea6b19d
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php
index 36a08fa030..7289f08a32 100644
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@ -261,7 +261,7 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");
location / {
root /usr/share/nginx/html;
index index.html;
- try_files \$uri \$uri/index.html \$uri/ /index.html =404;
+ try_files \$uri \$uri.html \$uri/index.html \$uri/ /index.html =404;
}
error_page 500 502 503 504 /50x.html;
@@ -647,4 +647,4 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");
);
$this->commit = $this->saved_outputs->get('git_commit_sha');
}
-}
+}
\ No newline at end of file