1. Caddy version (caddy version
):
2.4.6
2. How I run Caddy:
As a service with Caddyfile
a. System environment:
Ubuntu 21.04 x64 (ESXI VM)
CloudFlare is only used for DNS (WAF is Disabled)
b. Command:
caddy reload
c. Service/unit/compose file:
Not used
d. My complete Caddyfile or JSON config:
#Test Web App (Only One that works but originally was a file server)
plex.yourdomain.com {
reverse_proxy 192.168.86.3:80
}
#Test Server (Not Working)
www.yourdomain2.com {
reverse_proxy 192.168.86.9:443
}
#Test Admin Server (Not Working)
yourdomain3.com {
reverse_proxy 192.168.86.12:9000
}
3. The problem I’m having:
Both walzglobal.com and walztrading.com are not working. They seem to be failing on the let’s encrypt challenge. However CaddyServer IP is responding to 80/443 externally.
I am trying to setup Let’s Encrypt on both of these top level domains with certificates.
How do I get Let’s Encrypt to generate certificates on these domains if port 80/443 is not exposed on the individual reverse proxies. What am I missing? I would of thought Caddy could handle this without any additional configuration but I seem to be missing something.
4. Error messages and/or full log output:
I am not see any logs get generated. Tried adding these values but didn’t generate anything.
yourdomain.com {
reverse_proxy 192.168.86.12:9000
log {
level DEBUG
output file /etc/caddy/caddy.log {
roll_size 10MiB
roll_keep 10
roll_keep_for 336h
}
}
}
5. What I already tried:
yourdomain.com is probably working because I originally setup as a test file server to verify all was good, but this also generated the certificate at that time.