Created
January 29, 2026 18:00
-
-
Save f3bruary/0082e8c8d621f40b9c24379704603ac3 to your computer and use it in GitHub Desktop.
Traefik redirect rules on Coolify for localized Astro 404 page support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Example of Dutch 404 page support | |
| # This assumes your 404 html file is at /nl/404/index.html | |
| # Replace domain.com and CONTAINERNAME, and optionally all occurrences of projectname | |
| traefik.http.routers.projectname-nl.rule=Host(`domain.com`) && PathPrefix(`/nl`) | |
| traefik.http.routers.projectname-nl.entryPoints=https | |
| traefik.http.routers.projectname-nl.tls=true | |
| traefik.http.routers.projectname-nl.tls.certresolver=letsencrypt | |
| traefik.http.routers.projectname-nl.service=http-0-CONTAINERNAME | |
| traefik.http.routers.projectname-nl.priority=200 | |
| traefik.http.routers.projectname-nl.middlewares=project-nl-errors@docker | |
| traefik.http.middlewares.projectname-nl-errors.errors.status=404 | |
| traefik.http.middlewares.projectname-nl-errors.errors.service=http-0-CONTAINERNAME@docker | |
| traefik.http.middlewares.projectname-nl-errors.errors.query=/nl/404/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment