Caddy Reverse_Proxy directive is not able to reach /path that is inside other container

I’m not able to edit my question now don’t know maybe I can’t starting my question again from here

Below is my Caddyfile

{
    debug
    on_demand_tls {
        ask http://tls-check:5555/check

        burst 5
        interval 2m
    }
}

https:// {
    tls {
        on_demand
    }

    log {
        output stdout
    }

    encode gzip

    reverse_proxy /client-name client-name-frontend:3000
}

Inside client-name-frontend:3000 my landing page is
localhost:3000/client-name
Meaning I can access the client-name-frontend:3000 if I use /client-name

PROBLEM
With Above Caddyfile I get SSL certificate for my domain that get’s authenticated through the service running here
ask http://tls-check:5555/checksubdomain.maindomain.com

But when I add /client-name to hit landing page
subdomain.maindomain.com/client-name

Caddy is not able to serve me the content that is available on that container which is → reverse_proxy /client-name client-name-frontend:3000

I just get a blue screen that is the background color of my landing page that it.

Caddy Container Logs: On first hit to the domain → subdomain.maindomain.com

{"remote_ip":"103.169.64.57","remote_port":"28910","client_ip":"103.169.64.57","proto":"HTTP/1.1","method":"GET","host":"protectionplans.goevstar.com","uri":"/","headers":{"Accept-Encoding":["gzip, deflate"],"Accept-Language":["en-US,en;q=0.9"],"Connection":["keep-alive"],"Upgrade-Insecure-Requests":["1"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.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"]}},"bytes_read":0,"user_id":"","duration":0.000039277,"size":0,"status":308,"resp_headers":{"Server":["Caddy"],"Connection":["close"],"Location":["https://protectionplans.goevstar.com/"],"Content-Type":[]}}

{"level":"debug","ts":1702674425.0478466,"logger":"http.acme_client","msg":"http request","method":"POST","url":"https://acme.zerossl.com/v2/DV90/newOrder","headers":{"Content-Type":["application/jose+json"],"User-Agent":["Caddy/2.7.6 CertMagic acmez (linux; amd64)"]},"response_headers":{"Access-Control-Allow-Origin":["*"],"Cache-Control":["max-age=0, no-cache, no-store"],"Content-Length":["290"],"Content-Type":["application/json"],"Date":["Fri, 15 Dec 2023 21:07:05 GMT"],"Location":["https://acme.zerossl.com/v2/DV90/order/c8X9ndMrV7c1AU8lrmNl8Q"],"Replay-Nonce":["nbXKks16bDqWRDH0Y5RASL1carF7AlFrzR5wtYPYzD4"],"Server":["nginx"],"Strict-Transport-Security":["max-age=15724800; includeSubDomains"]},"status_code":201}

{"level":"debug","ts":1702674425.4847732,"logger":"http.acme_client","msg":"http request","method":"POST","url":"https://acme.zerossl.com/v2/DV90/authz/gX5vZkL2yBNZViHB1UePeg","headers":{"Content-Type":["application/jose+json"],"User-Agent":["Caddy/2.7.6 CertMagic acmez (linux; amd64)"]},"response_headers":{"Access-Control-Allow-Origin":["*"],"Cache-Control":["max-age=0, no-cache, no-store"],"Content-Length":["458"],"Content-Type":["application/json"],"Date":["Fri, 15 Dec 2023 21:07:05 GMT"],"Link":["<https://acme.zerossl.com/v2/DV90>;rel=\"index\""],"Replay-Nonce":["jC6_qxxPiqqynPB_E8mUPH6qGXRonAJD5G_rKFhnujg"],"Retry-After":["5"],"Server":["nginx"],"Strict-Transport-Security":["max-age=15724800; includeSubDomains"]},"status_code":200}

{"level":"debug","ts":1702674425.4850316,"logger":"http.acme_client","msg":"no solver configured","challenge_type":"dns-01"}

{"level":"info","ts":1702674425.4850547,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"protectionplans.goevstar.com","challenge_type":"http-01","ca":"https://acme.zerossl.com/v2/DV90"}

{"level":"debug","ts":1702674425.4855769,"logger":"http.acme_client","msg":"waiting for solver before continuing","identifier":"protectionplans.goevstar.com","challenge_type":"http-01"}

{"level":"debug","ts":1702674425.4855957,"logger":"http.acme_client","msg":"done waiting for solver","identifier":"protectionplans.goevstar.com","challenge_type":"http-01"}

{"level":"debug","ts":1702674425.5088236,"logger":"events","msg":"event","name":"tls_get_certificate","id":"1a009b4f-c74a-4be3-ad62-384598edb66a","origin":"tls","data":{"client_hello":{"CipherSuites":[47802,4865,4866,4867,49195,49199,49196,49200,52393,52392,49171,49172,156,157,47,53],"ServerName":"protectionplans.goevstar.com","SupportedCurves":[31354,29,23,24],"SupportedPoints":"AA==","SignatureSchemes":[1027,2052,1025,1283,2053,1281,2054,1537],"SupportedProtos":["h2","http/1.1"],"SupportedVersions":[60138,772,771],"RemoteAddr":{"IP":"103.169.64.57","Port":28912,"Zone":""},"LocalAddr":{"IP":"172.19.0.4","Port":443,"Zone":""}}}}

{"level":"debug","ts":1702674425.5089192,"logger":"tls.handshake","msg":"no matching certificates and no custom selection logic","identifier":"protectionplans.goevstar.com"}

{"level":"debug","ts":1702674425.5089285,"logger":"tls.handshake","msg":"no matching certificates and no custom selection logic","identifier":"*.goevstar.com"}

{"level":"debug","ts":1702674425.508933,"logger":"tls.handshake","msg":"no matching certificates and no custom selection logic","identifier":"*.*.com"}

{"level":"debug","ts":1702674425.508938,"logger":"tls.handshake","msg":"no matching certificates and no custom selection logic","identifier":"*.*.*"}

{"level":"debug","ts":1702674426.1629565,"logger":"http.acme_client","msg":"http request","method":"POST","url":"https://acme.zerossl.com/v2/DV90/chall/lNMz2R60PV3uhA4n8ijQKA","headers":{"Content-Type":["application/jose+json"],"User-Agent":["Caddy/2.7.6 CertMagic acmez (linux; amd64)"]},"response_headers":{"Access-Control-Allow-Origin":["*"],"Cache-Control":["max-age=0, no-cache, no-store"],"Content-Length":["164"],"Content-Type":["application/json"],"Date":["Fri, 15 Dec 2023 21:07:06 GMT"],"Link":["<https://acme.zerossl.com/v2/DV90/authz/gX5vZkL2yBNZViHB1UePeg>;rel=\"up\""],"Replay-Nonce":["nBpo-7ZdKtOmkVdoiRE_aB7vUhP5G5RLSTwCE9Ewe5o"],"Retry-After":["10"],"Server":["nginx"],"Strict-Transport-Security":["max-age=15724800; includeSubDomains"]},"status_code":200}

{"level":"debug","ts":1702674426.163049,"logger":"http.acme_client","msg":"challenge accepted","identifier":"protectionplans.goevstar.com","challenge_type":"http-01"}

{"level":"info","ts":1702674426.8525162,"logger":"http","msg":"served key authentication","identifier":"protectionplans.goevstar.com","challenge":"http-01","remote":"91.199.212.132:40168","distributed":false}

{"level":"info","ts":1702674426.8525689,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"91.199.212.132","remote_port":"40168","client_ip":"91.199.212.132","proto":"HTTP/1.1","method":"GET","host":"protectionplans.goevstar.com","uri":"/.well-known/acme-challenge/Z4NBrctV-_rl5i7la12Y9pdUcZl82PNd4Bl4VCxuokk","headers":{"Cache-Control":["no-cache"],"Accept-Encoding":["gzip"],"Connection":["close"],"User-Agent":["acme.zerossl.com/v2/DV90"]}},"bytes_read":0,"user_id":"","duration":0.000058368,"size":87,"status":200,"resp_headers":{"Server":["Caddy"],"Content-Type":["text/plain"]}}

{"level":"debug","ts":1702674426.9681437,"logger":"http.acme_client","msg":"http request","method":"POST","url":"https://acme.zerossl.com/v2/DV90/authz/gX5vZkL2yBNZViHB1UePeg","headers":{"Content-Type":["application/jose+json"],"User-Agent":["Caddy/2.7.6 CertMagic acmez (linux; amd64)"]},"response_headers":{"Access-Control-Allow-Origin":["*"],"Cache-Control":["max-age=0, no-cache, no-store"],"Content-Length":["461"],"Content-Type":["application/json"],"Date":["Fri, 15 Dec 2023 21:07:06 GMT"],"Link":["<https://acme.zerossl.com/v2/DV90>;rel=\"index\""],"Replay-Nonce":["VNGvkL58uIqlGe7LRhsMLWKAgHJsBeQ4bV0a7u1MsSs"],"Retry-After":["5"],"Server":["nginx"],"Strict-Transport-Security":["max-age=15724800; includeSubDomains"]},"status_code":200}

{"level":"debug","ts":1702674432.2720428,"logger":"http.acme_client","msg":"http request","method":"POST","url":"https://acme.zerossl.com/v2/DV90/authz/gX5vZkL2yBNZViHB1UePeg","headers":{"Content-Type":["application/jose+json"],"User-Agent":["Caddy/2.7.6 CertMagic acmez (linux; amd64)"]},"response_headers":{"Access-Control-Allow-Origin":["*"],"Cache-Control":["max-age=0, no-cache, no-store"],"Content-Length":["328"],"Content-Type":["application/json"],"Date":["Fri, 15 Dec 2023 21:07:12 GMT"],"Link":["<https://acme.zerossl.com/v2/DV90>;rel=\"index\""],"Replay-Nonce":["QdZ25rroRMY6o_yVKx9qUIbHYv5V0RD8hsBB3eHMI4U"],"Retry-After":["300"],"Server":["nginx"],"Strict-Transport-Security":["max-age=15724800; includeSubDomains"]},"status_code":200}

{"level":"info","ts":1702674432.2722678,"logger":"http.acme_client","msg":"authorization finalized","identifier":"protectionplans.goevstar.com","authz_status":"valid"}

{"level":"info","ts":1702674432.2722847,"logger":"http.acme_client","msg":"validations succeeded; finalizing order","order":"https://acme.zerossl.com/v2/DV90/order/c8X9ndMrV7c1AU8lrmNl8Q"}

{"level":"debug","ts":1702674432.593471,"logger":"http.acme_client","msg":"http request","method":"POST","url":"https://acme.zerossl.com/v2/DV90/order/c8X9ndMrV7c1AU8lrmNl8Q/finalize","headers":{"Content-Type":["application/jose+json"],"User-Agent":["Caddy/2.7.6 CertMagic acmez (linux; amd64)"]},"response_headers":{"Access-Control-Allow-Origin":["*"],"Cache-Control":["max-age=0, no-cache, no-store"],"Content-Length":["293"],"Content-Type":["application/json"],"Date":["Fri, 15 Dec 2023 21:07:12 GMT"],"Location":["https://acme.zerossl.com/v2/DV90/order/c8X9ndMrV7c1AU8lrmNl8Q"],"Replay-Nonce":["XCrW7it9lDB-lfRi-d-k6i0Hj05VLmL5uPp-V_1V420"],"Retry-After":["15"],"Server":["nginx"],"Strict-Transport-Security":["max-age=15724800; includeSubDomains"]},"status_code":200}

{"level":"debug","ts":1702674447.9485872,"logger":"http.acme_client","msg":"http request","method":"POST","url":"https://acme.zerossl.com/v2/DV90/order/c8X9ndMrV7c1AU8lrmNl8Q","headers":{"Content-Type":["application/jose+json"],"User-Agent":["Caddy/2.7.6 CertMagic acmez (linux; amd64)"]},"response_headers":{"Access-Control-Allow-Origin":["*"],"Cache-Control":["max-age=0, no-cache, no-store"],"Content-Length":["365"],"Content-Type":["application/json"],"Date":["Fri, 15 Dec 2023 21:07:27 GMT"],"Location":["https://acme.zerossl.com/v2/DV90/order/c8X9ndMrV7c1AU8lrmNl8Q"],"Replay-Nonce":["PYl1q3reUKwEIPrZTcojbhHQtH6_Veo_bQnWbKLUugw"],"Server":["nginx"],"Strict-Transport-Security":["max-age=15724800; includeSubDomains"]},"status_code":200}

{"level":"debug","ts":1702674448.2670753,"logger":"http.acme_client","msg":"http request","method":"POST","url":"https://acme.zerossl.com/v2/DV90/cert/T9GFkVq4kcgQ4VgoMyiVeA","headers":{"Content-Type":["application/jose+json"],"User-Agent":["Caddy/2.7.6 CertMagic acmez (linux; amd64)"]},"response_headers":{"Access-Control-Allow-Origin":["*"],"Cache-Control":["max-age=0, no-cache, no-store"],"Content-Length":["4152"],"Content-Type":["application/pem-certificate-chain"],"Date":["Fri, 15 Dec 2023 21:07:28 GMT"],"Link":["<https://acme.zerossl.com/v2/DV90>;rel=\"index\""],"Replay-Nonce":["vrghxUXKmL36PbKqkPESA3S8c52ZNR22swIDSsK2AY4"],"Server":["nginx"],"Strict-Transport-Security":["max-age=15724800; includeSubDomains"]},"status_code":200}

{"level":"info","ts":1702674448.2674654,"logger":"http.acme_client","msg":"successfully downloaded available certificate chains","count":1,"first_url":"https://acme.zerossl.com/v2/DV90/cert/T9GFkVq4kcgQ4VgoMyiVeA"}

{"level":"info","ts":1702674448.2679992,"logger":"tls.obtain","msg":"certificate obtained successfully","identifier":"protectionplans.goevstar.com

{"level":"debug","ts":1702674448.268174,"logger":"events","msg":"event","name":"cert_obtained","id":"f7d0022d-3dd3-4b73-bbb0-3aaa66e306f3","origin":"tls","data":{"certificate_path":"certificates/acme.zerossl.com-v2-dv90/protectionplans.goevstar.com/protectionplans.goevstar.com.crt","identifier":"protectionplans.goevstar.com","issuer":"acme.zerossl.com-v2-DV90","metadata_path":"certificates/acme.zerossl.com-v2-dv90/protectionplans.goevstar.com/protectionplans.goevstar.com.json","private_key_path":"certificates/acme.zerossl.com-v2-dv90/protectionplans.goevstar.com/protectionplans.goevstar.com.key","renewal":false,"storage_path":"certificates/acme.zerossl.com-v2-dv90/protectionplans.goevstar.com"}}

{"level":"info","ts":1702674448.2682052,"logger":"tls.obtain","msg":"releasing lock","identifier":"protectionplans.goevstar.com"}

{"level":"debug","ts":1702674448.268612,"logger":"tls","msg":"loading managed certificate","domain":"protectionplans.goevstar.com","expiration":1710460800,"issuer_key":"acme.zerossl.com-v2-DV90","storage":"FileStorage:/data/caddy"}

{"level":"debug","ts":1702674448.3097265,"logger":"tls.cache","msg":"added certificate to cache","subjects":["protectionplans.goevstar.com"],"expiration":1710460800,"managed":true,"issuer_key":"acme.zerossl.com-v2-DV90","hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112","cache_size":1,"cache_capacity":10000}

{"level":"debug","ts":1702674448.3097894,"logger":"events","msg":"event","name":"cached_managed_cert","id":"c0625986-8155-4fbe-ba92-5c23582fce08","origin":"tls","data":{"sans":["protectionplans.goevstar.com"]}}

{"level":"debug","ts":1702674448.310003,"logger":"tls.on_demand","msg":"loaded certificate from storage","remote_ip":"103.169.64.57","remote_port":"28905","subjects":["protectionplans.goevstar.com"],"managed":true,"expiration":1710460800,"hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"debug","ts":1702674448.3101344,"logger":"tls.handshake","msg":"choosing certificate","identifier":"protectionplans.goevstar.com","num_choices":1}

{"level":"debug","ts":1702674448.3102634,"logger":"tls.handshake","msg":"default certificate selection results","identifier":"protectionplans.goevstar.com","subjects":["protectionplans.goevstar.com"],"managed":true,"issuer_key":"acme.zerossl.com-v2-DV90","hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"debug","ts":1702674448.310318,"logger":"tls.handshake","msg":"matched certificate in cache","remote_ip":"103.169.64.57","remote_port":"28912","subjects":["protectionplans.goevstar.com"],"managed":true,"expiration":1710460800,"hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"debug","ts":1702674448.3106499,"logger":"tls.handshake","msg":"choosing certificate","identifier":"protectionplans.goevstar.com","num_choices":1}

{"level":"debug","ts":1702674448.3107233,"logger":"tls.handshake","msg":"default certificate selection results","identifier":"protectionplans.goevstar.com","subjects":["protectionplans.goevstar.com"],"managed":true,"issuer_key":"acme.zerossl.com-v2-DV90","hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"debug","ts":1702674448.3107321,"logger":"tls.handshake","msg":"matched certificate in cache","remote_ip":"103.169.64.57","remote_port":"28906","subjects":["protectionplans.goevstar.com"],"managed":true,"expiration":1710460800,"hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"info","ts":1702674448.5778677,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"103.169.64.57","remote_port":"28912","client_ip":"103.169.64.57","proto":"HTTP/2.0","method":"GET","host":"protectionplans.goevstar.com","uri":"/","headers":{"Sec-Ch-Ua":["\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Ch-Ua-Platform":["\"Windows\""],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"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"],"Accept-Language":["en-US,en;q=0.9"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"protectionplans.goevstar.com"}},"bytes_read":0,"user_id":"","duration":0.000019099,"size":0,"status":0,"resp_headers":{"Server":["Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"]}}

And when I try to hit reach landingpage subdomain.maindomain.com/client-name
Below are my Caddy Logs After that


{"level":"info","ts":1702674448.5778677,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"103.169.64.57","remote_port":"28912","client_ip":"103.169.64.57","proto":"HTTP/2.0","method":"GET","host":"protectionplans.goevstar.com","uri":"/","headers":{"Sec-Ch-Ua":["\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""],"Sec-Ch-Ua-Mobile":["?0"],"Sec-Ch-Ua-Platform":["\"Windows\""],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"],"Sec-Fetch-Site":["none"],"Sec-Fetch-Mode":["navigate"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Dest":["document"],"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"],"Accept-Language":["en-US,en;q=0.9"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"protectionplans.goevstar.com"}},"bytes_read":0,"user_id":"","duration":0.000019099,"size":0,"status":0,"resp_headers":{"Server":["Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"]}}

{"level":"debug","ts":1702674482.8575206,"logger":"events","msg":"event","name":"tls_get_certificate","id":"60f5edc4-4ee2-4d22-953d-89ea4010174d","origin":"tls","data":{"client_hello":{"CipherSuites":[4866,4867,4865,49196,49200,49195,49199,52393,52392,159,158,52394,49327,49325,49326,49324,49188,49192,49187,49191,49162,49172,49161,49171,49315,49311,49314,49310,107,103,57,51,157,156,49313,49309,49312,49308,61,60,53,47,255],"ServerName":"protectionplans.goevstar.com","SupportedCurves":[29,23,30,25,24,256,257,258,259,260],"SupportedPoints":"AAEC","SignatureSchemes":[1027,1283,1539,2055,2056,2057,2058,2059,2052,2053,2054,1025,1281,1537,771,769,770,1026,1282,1538],"SupportedProtos":["http/1.1"],"SupportedVersions":[772,771],"RemoteAddr":{"IP":"154.28.229.140","Port":13019,"Zone":""},"LocalAddr":{"IP":"172.19.0.4","Port":443,"Zone":""}}}}

{"level":"debug","ts":1702674482.8576312,"logger":"tls.handshake","msg":"choosing certificate","identifier":"protectionplans.goevstar.com","num_choices":1}

{"level":"debug","ts":1702674482.8576555,"logger":"tls.handshake","msg":"default certificate selection results","identifier":"protectionplans.goevstar.com","subjects":["protectionplans.goevstar.com"],"managed":true,"issuer_key":"acme.zerossl.com-v2-DV90","hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"debug","ts":1702674482.8576634,"logger":"tls.handshake","msg":"matched certificate in cache","remote_ip":"154.28.229.140","remote_port":"13019","subjects":["protectionplans.goevstar.com"],"managed":true,"expiration":1710460800,"hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"info","ts":1702674482.8695893,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"154.28.229.140","remote_port":"13019","client_ip":"154.28.229.140","proto":"HTTP/1.1","method":"GET","host":"protectionplans.goevstar.com","uri":"/","headers":{"Accept-Language":["en-US,en;q=0.9"],"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"],"Connection":["keep-alive"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"],"Sec-Ch-Ua":["Google Chrome\";v=\"111\", \"Not(A:Brand\";v=\"8\", \"Chromium\";v=\"111"],"Accept-Encoding":["gzip, deflate, br"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"http/1.1","server_name":"protectionplans.goevstar.com"}},"bytes_read":0,"user_id":"","duration":0.000017787,"size":0,"status":0,"resp_headers":{"Server":["Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"]}}

{"level":"debug","ts":1702674492.809256,"logger":"events","msg":"event","name":"tls_get_certificate","id":"334e0903-590c-4471-9dcb-ffeaca5c2209","origin":"tls","data":{"client_hello":{"CipherSuites":[4866,4867,4865,49196,49200,49195,49199,52393,52392,159,158,52394,49327,49325,49326,49324,49188,49192,49187,49191,49162,49172,49161,49171,49315,49311,49314,49310,107,103,57,51,157,156,49313,49309,49312,49308,61,60,53,47,255],"ServerName":"protectionplans.goevstar.com","SupportedCurves":[29,23,30,25,24,256,257,258,259,260],"SupportedPoints":"AAEC","SignatureSchemes":[1027,1283,1539,2055,2056,2057,2058,2059,2052,2053,2054,1025,1281,1537,771,769,770,1026,1282,1538],"SupportedProtos":["http/1.1"],"SupportedVersions":[772,771],"RemoteAddr":{"IP":"104.164.173.187","Port":33323,"Zone":""},"LocalAddr":{"IP":"172.19.0.4","Port":443,"Zone":""}}}}

{"level":"debug","ts":1702674492.80936,"logger":"tls.handshake","msg":"choosing certificate","identifier":"protectionplans.goevstar.com","num_choices":1}

{"level":"debug","ts":1702674492.8093793,"logger":"tls.handshake","msg":"default certificate selection results","identifier":"protectionplans.goevstar.com","subjects":["protectionplans.goevstar.com"],"managed":true,"issuer_key":"acme.zerossl.com-v2-DV90","hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"debug","ts":1702674492.8093884,"logger":"tls.handshake","msg":"matched certificate in cache","remote_ip":"104.164.173.187","remote_port":"33323","subjects":["protectionplans.goevstar.com"],"managed":true,"expiration":1710460800,"hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"info","ts":1702674492.9582047,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"104.164.173.187","remote_port":"33323","client_ip":"104.164.173.187","proto":"HTTP/1.1","method":"GET","host":"protectionplans.goevstar.com","uri":"/","headers":{"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36"],"Sec-Ch-Ua":["Google Chrome\";v=\"111\", \"Not(A:Brand\";v=\"8\", \"Chromium\";v=\"111"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.9"],"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"],"Connection":["keep-alive"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"http/1.1","server_name":"protectionplans.goevstar.com"}},"bytes_read":0,"user_id":"","duration":0.000018014,"size":0,"status":0,"resp_headers":{"Server":["Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"]}}

{"level":"debug","ts":1702674619.8605845,"logger":"events","msg":"event","name":"tls_get_certificate","id":"64825e6a-7b34-4e55-8007-d83f12462402","origin":"tls","data":{"client_hello":{"CipherSuites":[52393,52392,49195,49199,49196,49200,49161,49171,49162,49172,156,157,47,53,49170,10,4867,4865,4866],"ServerName":"protectionplans.goevstar.com","SupportedCurves":[29,23,24,25],"SupportedPoints":"AA==","SignatureSchemes":[2052,1027,2055,2053,2054,1025,1281,1537,1283,1539,513,515],"SupportedProtos":null,"SupportedVersions":[772,771,770,769],"RemoteAddr":{"IP":"193.143.1.139","Port":41564,"Zone":""},"LocalAddr":{"IP":"172.19.0.4","Port":443,"Zone":""}}}}

{"level":"debug","ts":1702674619.86069,"logger":"tls.handshake","msg":"choosing certificate","identifier":"protectionplans.goevstar.com","num_choices":1}

{"level":"debug","ts":1702674619.86071,"logger":"tls.handshake","msg":"default certificate selection results","identifier":"protectionplans.goevstar.com","subjects":["protectionplans.goevstar.com"],"managed":true,"issuer_key":"acme.zerossl.com-v2-DV90","hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"debug","ts":1702674619.8607185,"logger":"tls.handshake","msg":"matched certificate in cache","remote_ip":"193.143.1.139","remote_port":"41564","subjects":["protectionplans.goevstar.com"],"managed":true,"expiration":1710460800,"hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"info","ts":1702674620.0007865,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"193.143.1.139","remote_port":"41564","client_ip":"193.143.1.139","proto":"HTTP/1.1","method":"GET","host":"protectionplans.goevstar.com","uri":"/admin/.git/config","headers":{"Connection":["close"],"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Flipboard/4.2.142"],"Accept-Charset":["utf-8"],"Accept-Encoding":["gzip"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"protectionplans.goevstar.com"}},"bytes_read":0,"user_id":"","duration":0.00001695,"size":0,"status":0,"resp_headers":{"Server":["Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"]}}

{"level":"debug","ts":1702674632.3171442,"logger":"http.stdlib","msg":"http: TLS handshake error from 66.160.133.235:53625: tls: client offered only unsupported versions: [302 301]"}

{"level":"debug","ts":1702674872.356034,"logger":"events","msg":"event","name":"tls_get_certificate","id":"84258f4f-f6b0-4129-b7ae-0ca8281035f7","origin":"tls","data":{"client_hello":{"CipherSuites":[56026,4865,4866,4867,49195,49199,49196,49200,52393,52392,49171,49172,156,157,47,53],"ServerName":"protectionplans.goevstar.com","SupportedCurves":[14906,29,23,24],"SupportedPoints":"AA==","SignatureSchemes":[1027,2052,1025,1283,2053,1281,2054,1537],"SupportedProtos":["h2","http/1.1"],"SupportedVersions":[64250,772,771],"RemoteAddr":{"IP":"103.169.64.57","Port":28985,"Zone":""},"LocalAddr":{"IP":"172.19.0.4","Port":443,"Zone":""}}}}

{"level":"debug","ts":1702674872.3561313,"logger":"tls.handshake","msg":"choosing certificate","identifier":"protectionplans.goevstar.com","num_choices":1}

{"level":"debug","ts":1702674872.356151,"logger":"tls.handshake","msg":"default certificate selection results","identifier":"protectionplans.goevstar.com","subjects":["protectionplans.goevstar.com"],"managed":true,"issuer_key":"acme.zerossl.com-v2-DV90","hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"debug","ts":1702674872.3561597,"logger":"tls.handshake","msg":"matched certificate in cache","remote_ip":"103.169.64.57","remote_port":"28985","subjects":["protectionplans.goevstar.com"],"managed":true,"expiration":1710460800,"hash":"7a51a5a764fe1e11f8752f37e182b1e4059a1e6837339df2e67dfd7657297112"}

{"level":"debug","ts":1702674872.4182723,"logger":"http.handlers.reverse_proxy","msg":"selected upstream","dial":"dobson-frontend:3000","total_upstreams":1}

{"level":"debug","ts":1702674872.441069,"logger":"http.handlers.reverse_proxy","msg":"upstream roundtrip","upstream":"dobson-frontend:3000","duration":0.022715825,"request":{"remote_ip":"103.169.64.57","remote_port":"28984","client_ip":"103.169.64.57","proto":"HTTP/2.0","method":"GET","host":"protectionplans.goevstar.com","uri":"/dobson","headers":{"Sec-Fetch-Site":["none"],"Sec-Fetch-Dest":["document"],"X-Forwarded-Proto":["https"],"Sec-Ch-Ua":["\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"],"X-Forwarded-For":["103.169.64.57"],"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"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Ch-Ua-Mobile":["?0"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-User":["?1"],"Sec-Fetch-Mode":["navigate"],"Sec-Ch-Ua-Platform":["\"Windows\""],"X-Forwarded-Host":["protectionplans.goevstar.com"]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"protectionplans.goevstar.com"}},"headers":{"Access-Control-Allow-Headers":["*"],"Content-Encoding":["gzip"],"Connection":["keep-alive"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Methods":["*"],"Keep-Alive":["timeout=5"],"X-Powered-By":["Express"],"Content-Type":["text/html; charset=utf-8"],"Accept-Ranges":["bytes"],"Etag":["W/\"725-O/za5H7rDXugRELgHbvBGQ8raYs\""],"Vary":["Accept-Encoding"],"Date":["Fri, 15 Dec 2023 21:14:32 GMT"]},"status":200}

{"level":"info","ts":1702674872.4422436,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"103.169.64.57","remote_port":"28984","client_ip":"103.169.64.57","proto":"HTTP/2.0","method":"GET","host":"protectionplans.goevstar.com","uri":"/dobson","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.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-Mode":["navigate"],"Sec-Fetch-Dest":["document"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Ch-Ua-Mobile":["?0"],"Upgrade-Insecure-Requests":["1"],"Sec-Fetch-Site":["none"],"Sec-Fetch-User":["?1"],"Sec-Ch-Ua":["\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"protectionplans.goevstar.com"}},"bytes_read":0,"user_id":"","duration":0.024011114,"size":904,"status":200,"resp_headers":{"Date":["Fri, 15 Dec 2023 21:14:32 GMT"],"Accept-Ranges":["bytes"],"Vary":["Accept-Encoding"],"Access-Control-Allow-Headers":["*"],"Content-Encoding":["gzip"],"Access-Control-Allow-Origin":["*"],"Access-Control-Allow-Methods":["*"],"Etag":["W/\"725-O/za5H7rDXugRELgHbvBGQ8raYs\""],"Server":["Caddy"],"Alt-Svc":["h3=\":443\"; ma=2592000"],"X-Powered-By":["Express"],"Content-Type":["text/html; charset=utf-8"]}}

{"level":"info","ts":1702674872.7275693,"logger":"http.log.access.log0","msg":"handled request","request":{"remote_ip":"103.169.64.57","remote_port":"28984","client_ip":"103.169.64.57","proto":"HTTP/2.0","method":"GET","host":"protectionplans.goevstar.com","uri":"/static/js/bundle.js","headers":{"Sec-Ch-Ua":["\"Not_A Brand\";v=\"8\", \"Chromium\";v=\"120\", \"Google Chrome\";v=\"120\""],"Sec-Ch-Ua-Platform":["\"Windows\""],"Sec-Fetch-Site":["same-origin"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Ch-Ua-Mobile":["?0"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"],"Accept":["*/*"],"Sec-Fetch-Mode":["no-cors"],"Sec-Fetch-Dest":["script"],"Referer":["https://protectionplans.goevstar.com/dobson"]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"protectionplans.goevstar.com"}},"bytes_read":0,"user_id":"","duration":0.00001841,"size":0,"status":0,"resp_headers":{"Alt-Svc":["h3=\":443\"; ma=2592000"],"Server":["Caddy"]}}

My Dockerfile

# Build Stage
FROM node:lts-alpine AS BUILD_IMAGE
RUN apk update

WORKDIR /app

COPY package*.json ./

RUN npm install
COPY . .
RUN npm run build

# Production Stage
FROM node:lts-alpine AS RUNNER
WORKDIR /app
RUN apk update

COPY --from=BUILD_IMAGE /app/package*.json ./
COPY --from=BUILD_IMAGE /app/src ./src
COPY --from=BUILD_IMAGE /app/public ./public
COPY --from=BUILD_IMAGE /app/node_modules ./node_modules
ENV NODE_ENV=production

EXPOSE 3000

CMD ["npm", "start"]

I don’t see that in your logs. I’m not sure what log message you’re trying to point to exactly.

Keep in mind that this matches only exactly /client-name and not /client-name/foo. If you want to match paths below that, you need to add * to the matcher.

Also, your catch-all site doesn’t have any handling for paths other than that, so those will be served with an empty response because Caddy wasn’t configured to do anything with those requests.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.