Used this config and debug mod enabled, here’s the log after I visit https://example.com*.
Oct 18 13:26:38 local.hostname caddy[5642]: {"level":"debug","ts":1666070798.2031229,"logger":"events","msg":"event","name":"tls_get_certificate","id":"1a4530c0-f518-4877-ab94-76935f4e7c42","origin":"tls","data":{"client_hello":{"CipherSuites":[19018,4865,4866,4867,49196,49195,52393,49200,49199,52392,49162,49161,49172,49171,157,156,53,47,49160,49170,10],"ServerName":"example.com","SupportedCurves":[6682,29,23,24,25],"SupportedPoints":"AA==","SignatureSchemes":[1027,2052,1025,1283,515,2053,2053,1281,2054,1537,513],"SupportedProtos":["h2","http/1.1"],"SupportedVersions":[31354,772,771,770,769],"Conn":{}}}}
Oct 18 13:26:38 local.hostname caddy[5642]: {"level":"debug","ts":1666070798.2041628,"logger":"tls.handshake","msg":"choosing certificate","identifier":"example.com","num_choices":1}
Oct 18 13:26:38 local.hostname caddy[5642]: {"level":"debug","ts":1666070798.2046714,"logger":"tls.handshake","msg":"default certificate selection results","identifier":"example.com","subjects":["example.com"],"managed":true,"issuer_key":"acme.zerossl.com-v2-DV90","hash":"ae2f71082ba1059d4d9512410aa92de10804fa015b40510b66788e225cda5e7c"}
Oct 18 13:26:38 local.hostname caddy[5642]: {"level":"debug","ts":1666070798.2051926,"logger":"tls.handshake","msg":"matched certificate in cache","remote_ip":"*.*.*.*","remote_port":"36375","subjects":["example.com"],"managed":true,"expiration":1673568000,"hash":"ae2f71082ba1059d4d9512410aa92de10804fa015b40510b66788e225cda5e7c"}
Oct 18 13:26:38 local.hostname caddy[5642]: {"level":"debug","ts":1666070798.6872675,"logger":"http.handlers.file_server","msg":"sanitized path join","site_root":"/var/www/example.com/public/","request_path":"/appstore","result":"/var/www/example.com/public/appstore"}
Oct 18 13:26:38 local.hostname caddy[5642]: {"level":"debug","ts":1666070798.6882267,"logger":"http.log.error.log0","msg":"{id=tf4xvyqh4} fileserver.(*FileServer).notFound (staticfiles.go:579): HTTP 404","request":{"remote_ip":"*.*.*.*","remote_port":"36375","proto":"HTTP/2.0","method":"GET","host":"example.com","uri":"/appstore","headers":{"Sec-Fetch-Mode":["navigate"],"User-Agent":["Mozilla/5.0 (iPhone; CPU iPhone OS 16_0_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1"],"Accept-Language":["zh-CN,zh-Hans;q=0.9"],"Sec-Fetch-Dest":["document"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"example.com"}},"duration":0.001305362,"status":404,"err_id":"tf4xvyqh4","err_trace":"fileserver.(*FileServer).notFound (staticfiles.go:579)"}
Oct 18 13:26:39 local.hostname caddy[5642]: {"level":"debug","ts":1666070799.1378458,"logger":"http.handlers.file_server","msg":"sanitized path join","site_root":"/var/www/example.com/public/","request_path":"/appstore","result":"/var/www/example.com/public/appstore"}
Oct 18 13:26:39 local.hostname caddy[5642]: {"level":"debug","ts":1666070799.1379955,"logger":"http.log.error.log0","msg":"{id=qckz78gxf} fileserver.(*FileServer).notFound (staticfiles.go:579): HTTP 404","request":{"remote_ip":"*.*.*.*","remote_port":"36375","proto":"HTTP/2.0","method":"GET","host":"example.com","uri":"/appstore","headers":{"Accept":["*/*"],"Sec-Fetch-Dest":["empty"],"Referer":["https://example.com/appstore"],"Sec-Fetch-Mode":["cors"],"User-Agent":["Mozilla/5.0 (iPhone; CPU iPhone OS 16_0_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1"],"Accept-Language":["zh-CN,zh-Hans;q=0.9"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"example.com"}},"duration":0.00032219,"status":404,"err_id":"qckz78gxf","err_trace":"fileserver.(*FileServer).notFound (staticfiles.go:579)"}
Oct 18 13:26:39 local.hostname caddy[5642]: {"level":"debug","ts":1666070799.138443,"logger":"http.handlers.file_server","msg":"sanitized path join","site_root":"/var/www/example.com/public/","request_path":"/favicon.ico","result":"/var/www/example.com/public/favicon.ico"}
Oct 18 13:26:39 local.hostname caddy[5642]: {"level":"debug","ts":1666070799.1384964,"logger":"http.log.error.log0","msg":"{id=gfppa9541} fileserver.(*FileServer).notFound (staticfiles.go:579): HTTP 404","request":{"remote_ip":"*.*.*.*","remote_port":"36375","proto":"HTTP/2.0","method":"GET","host":"example.com","uri":"/favicon.ico","headers":{"Accept-Encoding":["gzip, deflate, br"],"Accept":["*/*"],"Sec-Fetch-Dest":["image"],"Referer":["https://example.com/appstore"],"Sec-Fetch-Mode":["no-cors"],"User-Agent":["Mozilla/5.0 (iPhone; CPU iPhone OS 16_0_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1"],"Accept-Language":["zh-CN,zh-Hans;q=0.9"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"example.com"}},"duration":0.000144442,"status":404,"err_id":"gfppa9541","err_trace":"fileserver.(*FileServer).notFound (staticfiles.go:579)"}
* remote_ip, hostname, domain name reserved.