1. My Caddy version (caddy version
):
LABEL org.opencontainers.image.version=v2.0.0-beta.17
2. How I run Caddy:
This is the way of IP traffic:
Internet - Router (portforwarding 80->192.1.2.3:81 / 443->192.1.2.3:444) - QNAP NAS-Server including Docker → Caddy-Container (81 and 444)
a. System environment:
Docker-Container caddy/caddy:latest
b. Command:
caddy run --config /etc/caddy/Caddyfile.txt --adapter caddyfile
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile:
{
email office@mickymouse.com
acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
debug
}
mickymouse.com,
www.mickymouse.com,
http://mickymouse.com
{
respond "This is a mickymouse-Page"
}
3. The problem I’m having:
I call up the website http://mickymouse.com in the web browser.
Result: Nothing!
A white page without any content.
I would expect to get the message: “This is a mickymouse-Page”.
But it’s connecting: it shows an insecure connection (see caddy file).
So what is wrong? What would be the steps to check?
What is the difference by using the ACME Staging environment?
Would there be a green SSL sign? Or what is the differnece?
4. Error messages and/or full log output:
020/03/15 20:50:30 [INFO][cache:0xc0001aeaa0] Started certificate maintenance routine
2020/03/15 20:50:30.029 INFO tls cleaned up storage units
2020/03/15 20:50:30.029 INFO http enabling automatic TLS certificate management {"domains": ["www.mickymouse", "mickymouse"]}
2020/03/15 20:50:30.295 INFO autosaved config {"file": "/config/caddy/autosave.json"}
2020/03/15 20:50:30.295 INFO serving initial configuration
2020/03/15 20:50:30 [INFO][www.mickymouse] Obtain certificate
2020/03/15 20:50:30 [INFO][www.mickymouse] Obtain: Waiting on rate limiter...
2020/03/15 20:50:30 [INFO][www.mickymouse] Obtain: Done waiting
2020/03/15 20:50:30 [INFO] [www.mickymouse] acme: Obtaining bundled SAN certificate
2020/03/15 20:50:30 [INFO][mickymouse] Obtain certificate
2020/03/15 20:50:30 [INFO][mickymouse] Obtain: Waiting on rate limiter...
2020/03/15 20:50:30 [INFO][mickymouse] Obtain: Done waiting
2020/03/15 20:50:30 [INFO] [mickymouse] acme: Obtaining bundled SAN certificate
2020/03/15 20:50:31 [INFO] [www.mickymouse] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/43918201
2020/03/15 20:50:31 [INFO] [www.mickymouse] acme: Could not find solver for: tls-alpn-01
2020/03/15 20:50:31 [INFO] [www.mickymouse] acme: use http-01 solver
2020/03/15 20:50:31 [INFO] [www.mickymouse] acme: Trying to solve HTTP-01
2020/03/15 20:50:31 [INFO] [mickymouse] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/43918202
2020/03/15 20:50:31 [INFO] [mickymouse] acme: Could not find solver for: tls-alpn-01
2020/03/15 20:50:31 [INFO] [mickymouse] acme: use http-01 solver
2020/03/15 20:50:31 [INFO] [mickymouse] acme: Trying to solve HTTP-01
2020/03/15 20:50:35 [INFO] Deactivating auth: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/43918202
2020/03/15 20:50:36 [INFO] Unable to deactivate the authorization: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/43918202
2020/03/15 20:50:36 [ERROR][mickymouse] failed to obtain certificate: acme: Error -> One or more domains had a problem:
[mickymouse] acme: error: 400 :: urn:ietf:params:acme:error:connection :: Fetching http://mickymouse/.well-known/acme-challenge/Qxo-W0GJPUlIXfS5ivx1S3ZV27SSv1Aun9C7v4bgM
1g: Connection refused, url: (attempt 1/2; challenge=http-01)
2020/03/15 20:50:37 [INFO] [mickymouse] acme: Obtaining bundled SAN certificate
2020/03/15 20:50:37 [INFO] [mickymouse] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/43918210
2020/03/15 20:50:37 [INFO] [mickymouse] acme: Could not find solver for: tls-alpn-01
2020/03/15 20:50:37 [INFO] [mickymouse] acme: use http-01 solver
2020/03/15 20:50:37 [INFO] [mickymouse] acme: Trying to solve HTTP-01
5. What I already tried:
Did a reverse proxy to a working website, which was showing up as http, but not via https.