Preserve the HTTP target URL path when opening a target
Feature request
Please respect the path configured in an HTTP target URL when opening the target, including targets with domain binding.
Use case
We are migrating applications from Teleport to Warpgate. Some applications share an upstream hostname and are exposed under different paths:
Each application has its own domain-bound target in Warpgate.
Current behavior
Example configuration:
- Target URL: https://cluster.example.com/prometheus/
- Domain binding: prometheus.warpgate.example.com
Opening the target takes the user to:
https://prometheus.warpgate.example.com/
The upstream receives / and returns 404.
Expected behavior
Opening the target should take the user to:
https://prometheus.warpgate.example.com/prometheus/
The path should remain visible in the browser and be forwarded unchanged to the upstream.
This is not a request to hide or strip the path, or to prepend it to every proxied request. It should be used as the target's initial landing path.
Teleport preserves the application path this way. Supporting the same behavior would simplify migration without requiring additional redirects in an external reverse proxy.
Version
Warpgate v0.29.0.
Source: warp-tech/warpgate