1. The problem I’m having:
I am not able to setup a specific protocol for a path in a domain while using reverse proxy. Can someone please help me with this? Thanks.
2. Error messages and/or full log output:
3. Caddy version:
v2.6.4
4. How I installed and ran Caddy:
a. System environment:
b. Command:
c. Service/unit/compose file:
d. My complete Caddy config:
my-domain {
respond "Protocol is {http.request.proto}"
encode gzip
reverse_proxy localhost:3000
log {
output file /var/log/caddy/one.log
}
handle /socket/* {
reverse_proxy localhost:8081
}
}
my-domain/socket/* {
respond "Protocol is {http.request.proto}"
encode gzip
reverse_proxy localhost:8081
tls {
alpn http/1.1
}
}.