1. The problem I’m having:
I’m getting a http error 502 when I try to access my new website, https://rpn.rentals
2. Error messages and/or full log output:
{"level":"error","ts":1695099915.7323623,"logger":"http.log.error","msg":"dial tcp 144.202.119.159:3344: i/o timeout","request":{"remote_ip":"172.69.34.163","remote_port":"48534","client_ip":"172.69.34.163","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/favicon.ico","headers":{"Cdn-Loop":["cloudflare"],"Cf-Connecting-Ip":["98.165.210.80"],"Accept-Encoding":["gzip"],"Cf-Ray":["808f4ad68d2d5287-LAX"],"Sec-Ch-Ua-Mobile":["?0"],"Accept":["image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8"],"X-Forwarded-Proto":["https"],"Sec-Fetch-Site":["same-origin"],"Sec-Fetch-Mode":["no-cors"],"Referer":["https://rpn.rentals/"],"Cf-Ipcountry":["US"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Sec-Ch-Ua-Platform":["\"Windows\""],"X-Forwarded-For":["98.165.210.80"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Sec-Fetch-Dest":["image"],"Accept-Language":["en-US,en;q=0.9"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":3.000464884,"status":502,"err_id":"3ni4sx63n","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100069.2975733,"logger":"http.log.error","msg":"dial tcp 144.202.119.159:3344: i/o timeout","request":{"remote_ip":"172.18.0.1","remote_port":"47550","client_ip":"172.18.0.1","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"User-Agent":["curl/7.88.1"],"Accept":["*/*"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":3.00054696,"status":502,"err_id":"0gbdkijh8","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100178.3529565,"logger":"http.log.error","msg":"dial tcp 144.202.119.159:3344: i/o timeout","request":{"remote_ip":"98.165.210.80","remote_port":"10208","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Dest":["document"],"Sec-Ch-Ua-Mobile":["?0"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Sec-Ch-Ua-Platform":["\"Windows\""],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.9"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":3.000661634,"status":502,"err_id":"589qwhwzb","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"info","ts":1695100340.7842338,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}
{"level":"warn","ts":1695100340.7842715,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"}
{"level":"info","ts":1695100340.7843332,"logger":"http","msg":"servers shutting down with eternal grace period"}
{"level":"info","ts":1695100340.8243048,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
{"level":"info","ts":1695100340.8245974,"msg":"shutdown complete","signal":"SIGTERM","exit_code":0}
{"level":"info","ts":1695100341.365186,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
{"level":"warn","ts":1695100341.3670676,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":2}
{"level":"info","ts":1695100341.3685887,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//[::1]:2019","//127.0.0.1:2019","//localhost:2019"]}
{"level":"info","ts":1695100341.36901,"logger":"http.auto_https","msg":"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}
{"level":"info","ts":1695100341.3691483,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
{"level":"info","ts":1695100341.3702297,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
{"level":"info","ts":1695100341.3704722,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details."}
{"level":"info","ts":1695100341.370731,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"info","ts":1695100341.3709202,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
{"level":"info","ts":1695100341.371018,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["www.rpn.rentals","rpn.rentals"]}
{"level":"info","ts":1695100341.372709,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1695100341.372818,"msg":"serving initial configuration"}
{"level":"info","ts":1695100341.3744931,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc00040d380"}
{"level":"info","ts":1695100341.3746767,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/data/caddy"}
{"level":"info","ts":1695100341.3756166,"logger":"tls","msg":"finished cleaning storage units"}
{"level":"error","ts":1695100388.936894,"logger":"http.log.error","msg":"dial tcp 144.202.119.159:3344: i/o timeout","request":{"remote_ip":"162.158.238.54","remote_port":"37334","client_ip":"162.158.238.54","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Cf-Connecting-Ip":["5.164.29.202"],"Cf-Ray":["808f5661a8d5d97f-HEL"],"X-Forwarded-Proto":["https"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"Cf-Ipcountry":["RU"],"Accept-Encoding":["gzip"],"X-Forwarded-For":["5.164.29.202"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 (scanner.ducks.party)"],"Cdn-Loop":["cloudflare"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":3.002590596,"status":502,"err_id":"33c793rg0","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100392.4998145,"logger":"http.log.error","msg":"dial tcp 144.202.119.159:3344: i/o timeout","request":{"remote_ip":"162.158.239.54","remote_port":"43564","client_ip":"162.158.239.54","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/favicon.ico","headers":{"X-Forwarded-For":["5.164.29.202"],"Cf-Ray":["808f5677fbcfd97f-HEL"],"X-Forwarded-Proto":["https"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 (scanner.ducks.party)"],"Cdn-Loop":["cloudflare"],"Cf-Connecting-Ip":["5.164.29.202"],"Cf-Ipcountry":["RU"],"Accept-Encoding":["gzip"],"Cf-Visitor":["{\"scheme\":\"https\"}"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":3.000480311,"status":502,"err_id":"7qq3vp1bs","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100450.9149885,"logger":"http.log.error","msg":"dial tcp 144.202.119.159:3344: i/o timeout","request":{"remote_ip":"65.154.226.167","remote_port":"27686","client_ip":"65.154.226.167","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Pragma":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/116.0.5845.187 Safari/537.36"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-Dest":["document"],"Cache-Control":["no-cache"],"Upgrade-Insecure-Requests":["1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-Site":["none"],"Sec-Fetch-User":["?1"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":3.000456429,"status":502,"err_id":"2ic6pj9a5","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100451.0597777,"logger":"http.log.error","msg":"dial tcp 144.202.119.159:3344: i/o timeout","request":{"remote_ip":"65.154.226.167","remote_port":"42562","client_ip":"65.154.226.167","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/116.0.5845.187 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Pragma":["no-cache"],"Cache-Control":["no-cache"],"Upgrade-Insecure-Requests":["1"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Site":["none"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":3.000452885,"status":502,"err_id":"9aaespsym","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"info","ts":1695100957.2622151,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}
{"level":"warn","ts":1695100957.2625422,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"}
{"level":"info","ts":1695100957.2642376,"logger":"http","msg":"servers shutting down with eternal grace period"}
{"level":"info","ts":1695100957.5491114,"logger":"admin","msg":"stopped previous server","address":"localhost:2019"}
{"level":"info","ts":1695100957.549654,"msg":"shutdown complete","signal":"SIGTERM","exit_code":0}
{"level":"info","ts":1695100958.2021363,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
{"level":"warn","ts":1695100958.2038875,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":2}
{"level":"info","ts":1695100958.2089436,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
{"level":"info","ts":1695100958.2093377,"logger":"http.auto_https","msg":"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}
{"level":"info","ts":1695100958.2094781,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
{"level":"info","ts":1695100958.2100902,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
{"level":"info","ts":1695100958.2103107,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details."}
{"level":"info","ts":1695100958.2108948,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"info","ts":1695100958.2111528,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
{"level":"info","ts":1695100958.2112515,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["www.rpn.rentals","rpn.rentals"]}
{"level":"info","ts":1695100958.2143981,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1695100958.2145534,"msg":"serving initial configuration"}
{"level":"info","ts":1695100958.2159848,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0003fd400"}
{"level":"info","ts":1695100958.216197,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/data/caddy"}
{"level":"info","ts":1695100958.2185981,"logger":"tls","msg":"finished cleaning storage units"}
{"level":"error","ts":1695100974.3793108,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"98.165.210.80","remote_port":"61743","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Sec-Fetch-Site":["none"],"Accept-Language":["en-US,en;q=0.9"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Purpose":["prefetch"],"Sec-Fetch-Dest":["document"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Upgrade-Insecure-Requests":["1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Purpose":["prefetch;prerender"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.002522,"status":502,"err_id":"3q4wwwzhm","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100974.4341636,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"98.165.210.80","remote_port":"61743","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Sec-Ch-Ua-Platform":["\"Windows\""],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Sec-Ch-Ua-Mobile":["?0"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Accept-Language":["en-US,en;q=0.9"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.001080675,"status":502,"err_id":"2buf7ygeh","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100980.7897477,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"98.165.210.80","remote_port":"61743","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Sec-Fetch-Mode":["navigate"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Cache-Control":["max-age=0"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Sec-Fetch-Site":["none"],"Sec-Fetch-Dest":["document"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Fetch-User":["?1"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.001139559,"status":502,"err_id":"0fhq0vtby","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100981.6879225,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"98.165.210.80","remote_port":"61743","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Cache-Control":["max-age=0"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Sec-Fetch-Dest":["document"],"Sec-Fetch-User":["?1"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Upgrade-Insecure-Requests":["1"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.001151691,"status":502,"err_id":"v8gpeep3b","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100982.467675,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"98.165.210.80","remote_port":"61743","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Sec-Fetch-Site":["none"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Upgrade-Insecure-Requests":["1"],"Sec-Ch-Ua-Mobile":["?0"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Accept-Encoding":["gzip, deflate, br"],"Cache-Control":["max-age=0"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.001226454,"status":502,"err_id":"vsgacrn5z","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100997.2388732,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"172.71.98.139","remote_port":"51774","client_ip":"172.71.98.139","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Cf-Connecting-Ip":["79.104.53.14"],"Cf-Ipcountry":["RU"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"User-Agent":["Go-http-client/1.1"],"Cdn-Loop":["cloudflare"],"Accept-Encoding":["gzip"],"X-Forwarded-For":["79.104.53.14"],"Cf-Ray":["808f654e6eb1b896-AMS"],"X-Forwarded-Proto":["https"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.001077993,"status":502,"err_id":"njtwymh10","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695100997.972265,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"172.71.98.139","remote_port":"51774","client_ip":"172.71.98.139","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"X-Forwarded-For":["79.104.53.14"],"Cf-Visitor":["{\"scheme\":\"https\"}"],"Cf-Connecting-Ip":["79.104.53.14"],"Cf-Ipcountry":["RU"],"X-Forwarded-Proto":["https"],"User-Agent":["Go-http-client/1.1"],"Referer":["http://rpn.rentals"],"Cdn-Loop":["cloudflare"],"Accept-Encoding":["gzip"],"Cf-Ray":["808f6554dd34b896-AMS"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.002097161,"status":502,"err_id":"d87sjxwjt","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695101046.222406,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"98.165.210.80","remote_port":"61743","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Cache-Control":["max-age=0"],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Accept-Language":["en-US,en;q=0.9"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Sec-Fetch-User":["?1"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-Dest":["document"],"Accept-Encoding":["gzip, deflate, br"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.001515106,"status":502,"err_id":"1hce0775f","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695101047.317704,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"98.165.210.80","remote_port":"61743","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Accept-Language":["en-US,en;q=0.9"],"Cache-Control":["max-age=0"],"Accept-Encoding":["gzip, deflate, br"],"Upgrade-Insecure-Requests":["1"],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Sec-Fetch-Dest":["document"],"Sec-Ch-Ua-Platform":["\"Windows\""]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.00106871,"status":502,"err_id":"wrwesygsf","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695101047.9577467,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"98.165.210.80","remote_port":"61743","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Sec-Fetch-User":["?1"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.9"],"Cache-Control":["max-age=0"],"Sec-Fetch-Mode":["navigate"],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-Dest":["document"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Fetch-Site":["none"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.001019483,"status":502,"err_id":"k6q7a8ygv","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695101133.8503377,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"98.165.210.80","remote_port":"61743","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Sec-Fetch-Mode":["navigate"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Sec-Ch-Ua-Platform":["\"Windows\""],"Upgrade-Insecure-Requests":["1"],"Purpose":["prefetch"],"Sec-Purpose":["prefetch;prerender"],"Sec-Fetch-Site":["none"],"Sec-Ch-Ua-Mobile":["?0"],"Accept-Language":["en-US,en;q=0.9"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.001222712,"status":502,"err_id":"85hez6eq3","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
{"level":"error","ts":1695101133.9602127,"logger":"http.log.error","msg":"dial tcp 172.18.0.4:3344: connect: connection refused","request":{"remote_ip":"98.165.210.80","remote_port":"61743","client_ip":"98.165.210.80","proto":"HTTP/2.0","method":"GET","host":"rpn.rentals","uri":"/","headers":{"Sec-Fetch-User":["?1"],"Sec-Ch-Ua":["\"Chromium\";v=\"116\", \"Not)A;Brand\";v=\"24\", \"Google Chrome\";v=\"116\""],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Sec-Fetch-Site":["none"],"Accept-Encoding":["gzip, deflate, br"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-Dest":["document"],"Accept-Language":["en-US,en;q=0.9"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"rpn.rentals"}},"duration":0.001080079,"status":502,"err_id":"6z92j0pzq","err_trace":"reverseproxy.statusError (reverseproxy.go:1248)"}
3. Caddy version:
v2.7.4 h1:J8nisjdOxnYHXlorUKXY75Gr6iBfudfoGhrJ8t7/flI=
4. How I installed and ran Caddy:
docker-compose
a. System environment:
ubuntu/docker/vultr.com
b. Command:
docker-compose up -d
c. Service/unit/compose file:
services:
caddy:
container_name: caddy
image: caddy:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- /docker/caddy/Caddyfile:/etc/caddy/Caddyfile
- /docker/caddy/data:/data
- /docker/caddy/srv:/srv
- /docker/caddy/config:/config
networks:
- t2_proxy
networks:
t2_proxy:
external: true
d. My complete Caddy config:
{
# Global options block. Entirely optional, https is on by default
# Optional email key for lets encrypt
email ryan@rpn.rentals
# Optional staging lets encrypt for testing. Comment out for production.
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
}
www.rpn.rentals {
redir https://rpn.rentals{uri}
}
rpn.rentals
reverse_proxy wordpress:3344
}
5. Links to relevant resources:
I’m able to connect to the wordpress website directly @ http://144.202.119.159:3344/
also, caddy and wordpress are on the same docker network, t2_proxy
Out put of curl:
root@rpn:/docker/caddy# curl -v https://rpn.rentals
* Trying 127.0.1.1:443...
* Connected to rpn.rentals (127.0.1.1) port 443 (#0)
* ALPN: offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN: server accepted h2
* Server certificate:
* subject: CN=rpn.rentals
* start date: Sep 19 03:58:58 2023 GMT
* expire date: Dec 18 03:58:57 2023 GMT
* subjectAltName: host "rpn.rentals" matched cert's "rpn.rentals"
* issuer: C=US; O=Let's Encrypt; CN=R3
* SSL certificate verify ok.
* using HTTP/2
* h2h3 [:method: GET]
* h2h3 [:path: /]
* h2h3 [:scheme: https]
* h2h3 [:authority: rpn.rentals]
* h2h3 [user-agent: curl/7.88.1]
* h2h3 [accept: */*]
* Using Stream ID: 1 (easy handle 0x55be0f246670)
> GET / HTTP/2
> Host: rpn.rentals
> user-agent: curl/7.88.1
> accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
< HTTP/2 502
< alt-svc: h3=":443"; ma=2592000
< server: Caddy
< content-length: 0
< date: Tue, 19 Sep 2023 05:31:39 GMT
<
* Connection #0 to host rpn.rentals left intact
root@rpn:/docker/caddy#