1. Caddy version (caddy version
):
v2.3.0 h1:fnrqJLa3G5vfxcxmOH/+kJOcunPLhSBnjgIvjXV/QTA=
2. How I run Caddy:
Caddy native
a. System environment:
Debian 10, systemd disabled, no Docker.
b. Command:
caddy run
c. Service/unit/compose file:
N/A
d. My complete Caddyfile or JSON config:
Frontend
# Global Option Block
{
# General Option
debug
}
# ACME Server
acme.roadrunner {
acme_server
tls internal
}
#
# Reverse proxy
#
bpass.intrafit.nl {
reverse_proxy https://caddytest.roadrunner
}
Backend
# Global Option Block
{
# General Option
debug
}
caddytest.roadrunner {
respond "Hello, this is your internal website @ 192.168.2.50"
tls {
ca https://acme.roadrunner/acme/local/directory
ca_root /root/root.crt
}
}
3. The problem Iâm having:
When trying to access the backend through the frontend ie https://bpass.intrafit.nl, I get a blank page.
4. Error messages and/or full log output:
Frontend
root@RJ-CaddyTK ~# caddy run
2021/02/09 16:39:57.631 INFO using adjacent Caddyfile
2021/02/09 16:39:57.637 INFO admin admin endpoint started {âaddressâ: âtcp/localhost:2019â, âenforce_originâ: false, âoriginsâ: [âlocalhost:2019â, â[::1]:2019â, â127.0.0.1:2019â]}
2021/02/09 16:39:57.656 INFO tls.cache.maintenance started background certificate maintenance {âcacheâ: â0xc000229960â}
2021/02/09 16:39:57.683 INFO http server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS {âserver_nameâ: âsrv0â, âhttps_portâ: 443}
2021/02/09 16:39:57.686 INFO http enabling automatic HTTP->HTTPS redirects {âserver_nameâ: âsrv0â}
2021/02/09 16:39:57.777 INFO pki.ca.local root certificate is already trusted by system {âpathâ: âstorage:pki/authorities/local/root.crtâ}
2021/02/09 16:39:57.780 DEBUG http starting server loop {âaddressâ: â[::]:443â, âhttp3â: false, âtlsâ: true}
2021/02/09 16:39:57.781 DEBUG http starting server loop {âaddressâ: â[::]:80â, âhttp3â: false, âtlsâ: false}
2021/02/09 16:39:57.781 INFO http enabling automatic TLS certificate management {âdomainsâ: [âbpass.intrafit.nlâ, âacme.roadrunnerâ]}
2021/02/09 16:39:57.782 DEBUG tls loading managed certificate {âdomainâ: âbpass.intrafit.nlâ, âexpirationâ: â2021/05/10 15:38:41.000â, âissuer_keyâ: âacme-v02.api.letsencrypt.org-directoryâ, âstorageâ: âFileStorage:/root/.local/share/caddyâ}
2021/02/09 16:39:57.792 WARN tls stapling OCSP {âerrorâ: âno OCSP stapling for [acme.roadrunner]: no OCSP server specified in certificateâ}
2021/02/09 16:39:57.796 INFO autosaved config {âfileâ: â/root/.config/caddy/autosave.jsonâ}
2021/02/09 16:39:57.797 INFO serving initial configuration
2021/02/09 16:39:57.791 INFO tls cleaned up storage units
Backend
root@RJ-Caddytest ~# caddy run
2021/02/09 16:39:33.577 INFO using adjacent Caddyfile
2021/02/09 16:39:33.583 INFO admin admin endpoint started {âaddressâ: âtcp/localhost:2019â, âenforce_originâ: false, âoriginsâ: [âlocalhost:2019â, â[::1]:2019â, â127.0.0.1:2019â]}
2021/02/09 16:39:33.587 INFO http server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS {âserver_nameâ: âsrv0â, âhttps_portâ: 443}
2021/02/09 16:39:33.590 INFO http enabling automatic HTTP->HTTPS redirects {âserver_nameâ: âsrv0â}
2021/02/09 16:39:33.591 DEBUG http starting server loop {âaddressâ: â[::]:443â, âhttp3â: false, âtlsâ: true}
2021/02/09 16:39:33.593 DEBUG http starting server loop {âaddressâ: â[::]:80â, âhttp3â: false, âtlsâ: false}
2021/02/09 16:39:33.595 INFO http enabling automatic TLS certificate management {âdomainsâ: [âcaddytest.roadrunnerâ]}
2021/02/09 16:39:33.593 INFO tls cleaned up storage units
2021/02/09 16:39:33.589 INFO tls.cache.maintenance started background certificate maintenance {âcacheâ: â0xc00022b810â}
2021/02/09 16:39:33.631 WARN tls stapling OCSP {âerrorâ: âno OCSP stapling for [caddytest.roadrunner]: no OCSP server specified in certificateâ}
2021/02/09 16:39:33.634 INFO autosaved config {âfileâ: â/root/.config/caddy/autosave.jsonâ}
2021/02/09 16:39:33.635 INFO serving initial configuration
5. What I already tried:
I successfully tried to access the backend directly ie https://caddytest.roadrunner I do get proper a response, including the message that the CA is untrusted.
When I shut down the backend, I get a Page not working.
I tried several different Caddyfile setups, including the option
transport http {
tls_insecure_skip_verify
}
6. Links to relevant resources:
- List item