Hello, another problem with my migration to the v2
1. My Caddy version (caddy version
):
v2.0.0-beta.20
2. How I run Caddy:
Following the V2 documentation
a. System environment:
VPS Ubuntu 18.x with systemd
I start with systemctl start caddy
d. My complete Caddyfile or JSON config:
stage.example.com, *.stage.example.com {
root * /var/www/html
php_fastcgi / unix//var/run/php/php7.4-fpm.sock
encode gzip
file_server
tls {
dns digitalocean
}
}
My caddy.service file
[Unit]
Description=Caddy Web Server
Documentation=https://caddyserver.com/docs/
After=network.target
[Service]
User=caddy
Group=caddy
ExecStart=/usr/bin/caddy run --config /etc/caddy/Caddyfile --resume --environ
ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
PrivateTmp=true
ProtectSystem=full
AmbientCapabilities=CAP_NET_BIND_SERVICE
; Letsencrypt-issued certificates will be written to this directory.
Environment=CADDYPATH=/etc/ssl/caddy DO_AUTH_TOKEN=xxxxxxxxxxxx
[Install]
WantedBy=multi-user.target
3. The problem Iâm having:
I use a droplet from Digital Ocean, but the domain name is from another provider (it redirects to the DO IP address).
On a droplet, I want to have stage.example.com serving a page, and *.stage.example.com pattern such
host1.stage.example.com
host2.stage-example.com
âŚ
=> Wildcard Attribution
4. Error messages and/or full log output:
systemctl status caddy
Mar 30 18:22:56 myVPS caddy[7873]: 2020/03/30 18:22:56 [INFO] [*.stage.example.com] acme: Obtaining bundled SAN certificate given a CSR
Mar 30 18:22:57 myVPS caddy[7873]: 2020/03/30 18:22:57 [INFO] [*.stage.example.com] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/3657295xxx
Mar 30 18:22:57 myVPS caddy[7873]: 2020/03/30 18:22:57 [INFO] [*.stage.example.com] acme: Could not find solver for: dns-01
Mar 30 18:22:57 myVPS caddy[7873]: 2020/03/30 18:22:57 [INFO] Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz-v3/3657295xxx
Mar 30 18:22:57 myVPS caddy[7873]: 2020/03/30 18:22:57 [ERROR] acme: Error -> One or more domains had a problem:
Mar 30 18:22:57 myVPS caddy[7873]: [*.stage.example.com] [*.stage.example.com] acme: could not determine solvers
Mar 30 18:22:57 myVPS caddy[7873]: (challenge=http-01 remaining=[])
Mar 30 18:22:59 myVPS caddy[7873]: 2020/03/30 18:22:59 [ERROR] attempt 1: [*.stage.example.com] Obtain: [*.stage.example.com] acme: Error -> One or more domains had a problem:
Mar 30 18:22:59 myVPS caddy[7873]: [*.stage.example.com] [*.stage.example.com] acme: could not determine solvers
Mar 30 18:22:59 myVPS caddy[7873]: - retrying in 1m0s (6.904590157s/720h0m0s elapsed)...
I really donât get how to solve this.
Thanks for reading