You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
tcg
added
🐛 Bug
Reported issues that need to be reproduced by the team.
🔍 Triage
Issues that need assessment and prioritization.
labels
Mar 24, 2025
tcg
changed the title
[Bug]: Static site default configuration ignores 404.html, and always responds w/ 200 statis + home page (index.html) content
[Bug]: Static site default configuration ignores 404.html, and always responds w/ 200 status + home page (index.html) content
Mar 24, 2025
Error Message and Logs
There is no visible error. It appears to be configuration/behavior based.
Steps to Reproduce
/some/path/that/does/not/exist
Example Repository URL
No response
Coolify Version
v4.0.0-beta.397
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.04.2 LTS
Additional Information
This appears to be related to this line:
coolify/bootstrap/helpers/shared.php
Line 4059 in f28eefe
I was able to find mention of this issue in a Discord thread, which appeared to have seen it resolved in a previous version: https://discord.com/channels/459365938081431553/1306307572814581862/1306309218432847976
It looks like this default config is assuming the static site is a SPA (based on the Git blame recent commit message).
I don't remember seeing any options in the Coolify UI to specify whether the static site should be considered a SPA / needs custom 404 page handling.
To overcome this issue for now, I'm using the "generate default config" option, and adjusting the relevant line.
e.g., this line:
becomes
... which resolves the behavior.
The text was updated successfully, but these errors were encountered: