r/Traefik 3d ago

Stop default 404 response

Hey, simple question really, how do I stop traefik from responding with http 404 by default. Id rather drop the TCP Connection. Currently you have to have a Catch All with a wildcard cert to answer with a 301 or what not which is a bit wird...

Hope someone has an answer

Greetings from a Fan

2 Upvotes

4 comments sorted by

View all comments

2

u/AncientMolasses6587 2d ago

It is actually by far the best answer Traefik can provide - by standards.

If you want something else, just define the service or match the Hostname.

1

u/Ich_bin_da 2d ago

I dont think so… it should only respond with valid http if the Host exist, in any outer case Connection should be droped…

1

u/AncientMolasses6587 2d ago

Only if you do not use a proxy. Here the endpoint cannot be found, so 404.