1. The problem I’m having:
I have tried several times to move from Caddy v1 to v2 but always have problems with reverse-proxy
nodes.
With Caddy v1, my Caddyfile
consists of import
directive for each node
import /etc/caddy/sub1.something.Caddyfile
import /etc/caddy/sub2.something.Caddyfile
import /etc/caddy/sub3.something.Caddyfile
...
Please help with translating the below Caddyfile
to the correspoding v2 directives.
2. Error messages and/or full log output:
N/A
3. Caddy version:
4. How I installed and ran Caddy:
a. System environment:
Ubuntu 20.04 or 22.04
b. Command:
N/A
c. Service/unit/compose file:
N/A
d. My complete Caddy config:
The Caddyfile for sub1.something
node as following,
https://sub1.something.com {
tls admin@something.com
proxy / https://127.0.0.1:51090 { transparent insecure_skip_verify }
}
The backend is apache
or nginx
using the default self-signed SSL
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key