diff --git a/config/docker/caddy/web-app/Caddyfile b/config/docker/caddy/web-app/Caddyfile index 3f7e32dd..56b28bfa 100644 --- a/config/docker/caddy/web-app/Caddyfile +++ b/config/docker/caddy/web-app/Caddyfile @@ -57,11 +57,12 @@ respond "healthy" 200 } -# 3. Static Files & SPA Fallback (NEUE, ROBUSTERE KONFIGURATION) -# Serve static files directly. -# For any path that is NOT a file and NOT a directory, rewrite to /index.html. -# This is a more explicit SPA-fallback than try_files for some proxies. - @not_file `not file` - rewrite @not_file /index.html - file_server +# 3. Static Files & SPA Fallback (Stable Config) + handle { + # Serve static files if they exist + file_server + + # SPA Routing: Fallback to index.html for non-existent files + try_files {path} /index.html + } } diff --git a/docs/ScreenShots/prod-docker-logs-web-app_2026-03-12_17-10.png b/docs/ScreenShots/prod-docker-logs-web-app_2026-03-12_17-10.png new file mode 100644 index 00000000..ccfe2de6 Binary files /dev/null and b/docs/ScreenShots/prod-docker-logs-web-app_2026-03-12_17-10.png differ