Nginx path stripping breaks Flask routing
warningconfigurationUpdated Mar 19, 2026(via Exa)
How to detect:
Nginx proxy_pass strips path prefix before forwarding to Flask. Request for /api/users becomes /users in Flask, causing 404 if route expects /api/users.
Recommended action:
Configure Nginx location block to preserve full path: use 'proxy_pass http://localhost:5000/api;' or ensure trailing slashes match on both location and proxy_pass.