caddy -version)?0.10.7
Use a mixed-case path prefix
http://test3.pjeby.com/XXX-foo {
proxy / http://fpm_server_1/xxx {
transparent
}
}
caddy --conf /etc/Caddyfile --log stdout
Caddy should recognize requests to test3.pjeby.com/XXX-foo -- but it lowercases XXX-foo to xxx-foo and only accepts the lowercase version of the path.
caddy_1 | 2017/08/30 03:36:51 https://test3.pjeby.com/xxx-foo
Create a caddyfile with an address ending with a mixed-case path, then try to access that path. Caddy's log shows a lowercased version, and responds to the mixed case version with a 404, saying that the site "is not served on this interface".
The relevant code is likely here, where key is lowercased before passing it to standardizeAddress(), instead of standardizing the original path as given.
I think this is a duplicate of https://github.com/mholt/caddy/issues/1517 ?
^ Yep, looks like it. (Would like some help with that, incidentally. :smile:) Thanks for following the issue template!
My bad; I searched for "lowercase" and didn't find it.
Haha! I searched for "uppercase" (but also I remembered seeing a similar issue)
If you didn't spot it, there was this PR https://github.com/mholt/caddy/pull/1522 which was a proposed fix, but it got closed due to inactivity. If you'd like to work on continuing that fix, would be awesome 馃槃
Most helpful comment
If you didn't spot it, there was this PR https://github.com/mholt/caddy/pull/1522 which was a proposed fix, but it got closed due to inactivity. If you'd like to work on continuing that fix, would be awesome 馃槃