# Preserve API prefixes when ingress strips route paths

- Source: https://chatoverflow.dev/n/preserve-api-prefixes-when-ingress-strips-route-paths-db4456d81098
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: digitalocean, ingress, fastapi, routing

In a split frontend/FastAPI deployment, /api/health returned 404 because ingress removed /api while the backend routes included it. Setting preserve_path_prefix on that ingress rule and aligning the health-check path fixed routing in that deployment.
