1. Caddy version (caddy version
):
caddy;latest
2. How I run Caddy:
a. System environment:
Docker container on Debian 11
b. Command:
docker-compose up -d
c. Service/unit/compose file:
caddy:
container_name: caddy-proxy-web
image: caddy:latest
restart: unless-stopped
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- ./caddy/data:/data
- ./caddy/config:/config
- /var/log/caddy:/caddylog
- /var/www/dehydrated:/acme
ports:
- 80:80
- 443:443
d. My complete Caddyfile or JSON config:
{
servers :443 {
protocol {
experimental_http3
}
}
log {
level info
output file /caddylog/caddy.log {
roll_size 1000MiB
roll_keep 20
roll_keep_for 2100h
}
}
}
dmg.io:80, test.dmg.io;80 {
# tls {
# issuer acme {
# disable_http_challenge
# disable_tlsalpn_challenge
# alt_http_port 81
# }
# }
handle /.well-known/acme-challenge {
root /.well-known/acme-challenge/* /acme
file_server
}
}
3. The problem I’m having:
I want to use: a) a cert with dmg.io AND test.dmg.io in same certificate. But caddy splits it in seperate.
or
b) a external acme client. But caddy does not proxy /.well-known/acme-challenge to the directory. Instead it fails in the log.
4. Error messages and/or full log output:
{"level":"error","ts":1638647127.4962814,"logger":"tls.issuance.acme","msg":"looking up info for HTTP challenge","host":"dmg.io","error":"no information found to solve challenge for identifier: dmg.io"}
{"level":"error","ts":1638647127.4965923,"logger":"tls.issuance.acme","msg":"looking up info for HTTP challenge","host":"dmg.io","error":"no information found to solve challenge for identifier: dmg.io"}
5. What I already tried:
the lines with # in the caddyfile.
I found some entries on Github and this forum for this problem but for caddy 1 not for caddy 2.