The sites don’t load and no certs are requested. This is all I could see in the logs:
Nov 23 20:51:15 web caddy[10459]: {"level":"info","ts":1606182675.5085702,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adap
ter":""}
Nov 23 20:51:15 web caddy[10459]: {"level":"info","ts":1606182675.5106173,"logger":"admin","msg":"admin endpoint started","address":"tcp/localhost:2019","enforc
e_origin":false,"origins":["localhost:2019","[::1]:2019","127.0.0.1:2019"]}
Nov 23 20:51:15 web caddy[10459]: {"level":"info","ts":1606182675.5111353,"logger":"http","msg":"server is listening only on the HTTP port, so no automatic HTTP
S will be applied to this server","server_name":"srv0","http_port":80}
Nov 23 20:51:15 web caddy[10459]: {"level":"info","ts":1606182675.5114248,"logger":"http","msg":"server is listening only on the HTTPS port but has no TLS conne
ction policies; adding one to enable TLS","server_name":"srv1","https_port":443}
Nov 23 20:51:15 web caddy[10459]: {"level":"info","ts":1606182675.511695,"logger":"http","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv1"}
Nov 23 20:51:15 web caddy[10459]: {"level":"warn","ts":1606182675.5119667,"logger":"http","msg":"user server is listening on same interface as automatic HTTP->H
TTPS redirects; user-configured routes might override these redirects","server_name":"srv0","interface":"tcp/:80"}
Nov 23 20:51:15 web caddy[10459]: {"level":"info","ts":1606182675.5112581,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","c
ache":"0xc000373490"}
Nov 23 20:51:15 web caddy[10459]: {"level":"info","ts":1606182675.5130527,"msg":"autosaved config","file":"/var/lib/caddy/.config/caddy/autosave.json"}
Nov 23 20:51:15 web caddy[10459]: {"level":"info","ts":1606182675.5133226,"msg":"serving initial configuration"}
Nov 23 20:51:15 web caddy[10459]: {"level":"info","ts":1606182675.5130901,"logger":"tls","msg":"cleaned up storage units"}
I’m basically trying to do this, except I don’t know the domains ahead of time:
example.com {
redir https://www.{host}{uri}
}
https://www.example.com {
reverse_proxy localhost:7777
}
Regardless of my particular setup, how do people typically go about setting this up?
Thank you!