From what i see in the 'access.log', request are in fact arriving at traefik since it registers entries trying to reach that domain. the 404 page is the default 404 page i see from traefik insself. I'm not sure if they are returned from the target service. How can i check?
access.log:
{"ClientAddr":"172.71.182.40:9998","ClientHost":"172.71.182.40","ClientPort":"9998","ClientUsername":"-","DownstreamContentSize":19,"DownstreamStatus":404,"Duration":11665,"GzipRatio":0,"OriginContentSize":0,"OriginDuration":0,"OriginStatus":0,"Overhead":11665,"RequestAddr":"b.com","RequestContentSize":0,"RequestCount":20,"RequestHost":"b.com","RequestMethod":"GET","RequestPath":"/","RequestPort":"-","RequestProtocol":"HTTP/1.1","RequestScheme":"http","RetryAttempts":0,"StartLocal":"2024-11-21T18:11:56.789547646Z","StartUTC":"2024-11-21T18:11:56.789547646Z","entryPointName":"web","level":"info","msg":"","time":"2024-11-21T18:11:56Z"}
{"ClientAddr":"172.71.182.40:9998","ClientHost":"172.71.182.40","ClientPort":"9998","ClientUsername":"-","DownstreamContentSize":19,"DownstreamStatus":404,"Duration":12394,"GzipRatio":0,"OriginContentSize":0,"OriginDuration":0,"OriginStatus":0,"Overhead":12394,"RequestAddr":"b.com","RequestContentSize":0,"RequestCount":21,"RequestHost":"b.com","RequestMethod":"GET","RequestPath":"/","RequestPort":"-","RequestProtocol":"HTTP/1.1","RequestScheme":"http","RetryAttempts":0,"StartLocal":"2024-11-21T18:11:57.117985025Z","StartUTC":"2024-11-21T18:11:57.117985025Z","entryPointName":"web","level":"info","msg":"","time":"2024-11-21T18:11:57Z"}
{"ClientAddr":"172.71.182.40:9998","ClientHost":"172.71.182.40","ClientPort":"9998","ClientUsername":"-","DownstreamContentSize":19,"DownstreamStatus":404,"Duration":11485,"GzipRatio":0,"OriginContentSize":0,"OriginDuration":0,"OriginStatus":0,"Overhead":11485,"RequestAddr":"b.com","RequestContentSize":0,"RequestCount":22,"RequestHost":"b.com","RequestMethod":"GET","RequestPath":"/","RequestPort":"-","RequestProtocol":"HTTP/1.1","RequestScheme":"http","RetryAttempts":0,"StartLocal":"2024-11-21T18:11:57.272432999Z","StartUTC":"2024-11-21T18:11:57.272432999Z","entryPointName":"web","level":"info","msg":"","time":"2024-11-21T18:11:57Z"}
{"ClientAddr":"172.71.182.40:9998","ClientHost":"172.71.182.40","ClientPort":"9998","ClientUsername":"-","DownstreamContentSize":19,"DownstreamStatus":404,"Duration":13239,"GzipRatio":0,"OriginContentSize":0,"OriginDuration":0,"OriginStatus":0,"Overhead":13239,"RequestAddr":"b.com","RequestContentSize":0,"RequestCount":23,"RequestHost":"b.com","RequestMethod":"GET","RequestPath":"/","RequestPort":"-","RequestProtocol":"HTTP/1.1","RequestScheme":"http","RetryAttempts":0,"StartLocal":"2024-11-21T18:11:57.476039399Z","StartUTC":"2024-11-21T18:11:57.476039399Z","entryPointName":"web","level":"info","msg":"","time":"2024-11-21T18:11:57Z"}
traefik.log stuff i could find regarding domain 'b':
{"level":"debug","time":"2024-11-21T18:11:44Z","caller":"github.com/traefik/traefik/v3/pkg/tls/certificate.go:132","message":"Adding certificate for domain(s) b.com"}
{"level":"debug","time":"2024-11-21T18:11:44Z","caller":"github.com/traefik/traefik/v3/pkg/tls/certificate.go:132","message":"Adding certificate for domain(s) *.b.com,audiobooks.a.com"}
{"level":"debug","providerName":"cloudflare.acme","acmeCA":"https://acme-v02.api.letsencrypt.org/directory","providerName":"cloudflare.acme","ACME CA":"https://acme-v02.api.letsencrypt.org/directory","routerName":"b@docker","rule":"Host(`b.com`)","time":"2024-11-21T18:11:45Z","caller":"github.com/traefik/traefik/v3/pkg/provider/acme/provider.go:445","message":"Trying to challenge certificate for domain [b.com] found in HostSNI rule"}
{"level":"debug","providerName":"cloudflare.acme","acmeCA":"https://acme-v02.api.letsencrypt.org/directory","providerName":"cloudflare.acme","ACME CA":"https://acme-v02.api.letsencrypt.org/directory","routerName":"b@docker","rule":"Host(`b.com`)","time":"2024-11-21T18:11:45Z","caller":"github.com/traefik/traefik/v3/pkg/provider/acme/provider.go:915","message":"Looking for provided certificate(s) to validate [\"b.com\"]..."}
{"level":"debug","providerName":"cloudflare.acme","acmeCA":"https://acme-v02.api.letsencrypt.org/directory","providerName":"cloudflare.acme","ACME CA":"https://acme-v02.api.letsencrypt.org/directory","routerName":"b@docker","rule":"Host(`b.com`)","domains":["b.com"],"time":"2024-11-21T18:11:45Z","caller":"github.com/traefik/traefik/v3/pkg/provider/acme/provider.go:959","message":"No ACME certificate generation required for domains"}
{"level":"debug","entryPointName":"websecure","routerName":"b@docker","serviceName":"web-b-test@docker","time":"2024-11-21T18:11:45Z","caller":"github.com/traefik/traefik/v3/pkg/server/service/service.go:318","message":"Creating load-balancer"}
{"level":"debug","entryPointName":"websecure","routerName":"b@docker","serviceName":"web-b-test@docker","serverName":"d030470e77acbcd1","target":"http://10.99.11.7:80","time":"2024-11-21T18:11:45Z","caller":"github.com/traefik/traefik/v3/pkg/server/service/service.go:355","message":"Creating server"}
{"level":"debug","providerName":"docker","config":{"http":{"routers":{"b":{"entryPoints":["websecure"],"service":"web-b-test","rule":"Host(`b.com`)","tls":{"certResolver":"cloudflare"} -> later in this line "web-b-test":{"loadBalancer":{"servers":[{"url":"http://10.99.11.7:80"}],"passHostHeader":true,"responseForwarding":{"flushInterval":"100ms"}}}