jegade
(Jens Gassmann)
March 15, 2017, 1:08pm
#1
We try to setup a simple Caddyfile with two static paths/addresses - but the uppercase does not work.
:80/Transfer/ , :80/download/ {
tls off
timeouts {
read 30m
write 30m
idle 30m
}
root /share
}
:80/Transfer is registered at /transfer and dont response on /Transfer/
Latest Caddy installed with docker image.
matt
(Matt Holt)
March 15, 2017, 2:57pm
#2
Caddy paths are case-sensitive. Check this environment variable (scroll to the bottom): https://caddyserver.com/docs/cli
jegade
(Jens Gassmann)
March 15, 2017, 3:06pm
#3
no, this does not resolve the problem. /Transfer is resolved to /transfer
Log:
2017/03/15 15:06:29 http:///transfer/
matt
(Matt Holt)
March 15, 2017, 3:17pm
#4
Interesting… that might be a bug then. Can you file an issue please so we don’t forget about it?
It shouldn’t be too hard to fix.
jegade
(Jens Gassmann)
March 15, 2017, 3:18pm
#5
Did the ENV-Var works also for adresses or only for path inside the host definition?
matt
(Matt Holt)
March 15, 2017, 3:23pm
#6
It might be only for paths in a URI, not site addresses that contain a path. I think that’s probably the bug, since I would expect a case-insensitive path in any site address too.
jegade
(Jens Gassmann)
March 15, 2017, 3:25pm
#7
i change the file, that the addresses inside the root hosts splitted. This resolves the problem.
:80 {
tls off
timeouts {
read 30m
write 30m
idle 30m
}
gzip {
ext .js .html .htm .css *
}
proxy / buuild:8081 buuild:8080 {
transparent
except /Transfer /download
}
root /share
}
matt
(Matt Holt)
March 15, 2017, 4:22pm
#8
That’s good! But I still think it’s a bug.
jegade
(Jens Gassmann)
March 15, 2017, 4:46pm
#9
system
(system)
closed
June 13, 2017, 5:30pm
#11
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.