Kong: strip_path decides what path the upstream actually receives

With strip_path true - the default - Kong removes the matched prefix before proxying. The upstream sees a path it may not route, and a 404 from your service looks identical to a 404 from Kong.

Full code & output

This topic is available to PRO members.

Sign in Create a free account

Run this yourself in the Online Java Compiler, spin up a live REST API in the API Sandbox, or practise with Java interview questions.

Published 2026-08-25