caddyserver / caddy

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
https://caddyserver.com
Apache License 2.0
56.49k stars 3.96k forks source link

Paths get mangled when using multiple caddy "layers" #5801

Closed tezlm closed 11 months ago

tezlm commented 11 months ago

Client -> caddy1 -> caddy2 -> host

caddy1's config file:

example.com {
    reverse_proxy caddy2
}

caddy2's config file:

http://example.com {
    reverse_proxy host
}

A request for https://example.com/example%2fpath will reach host as https://example.com/example/path

mholt commented 11 months ago

Is this reproducible using only Caddy 2?

(We don't support Caddy 1 anymore, so reproducing without Caddy 1 will be required if we are to fix a bug.)

tezlm commented 11 months ago

After some investigation, this doesn't seem to be a caddy problem. Sorry about that!