The goal is to intercept the wrong codes and produce a nice error page. But. If my domain is accessed incorrectly, for example subdomain.domain.com (I don't have such a router with such a subdomain), in this case the browser returns a 404 standard. And if you address my domain through a strange request, such as http://123.domain.com:443, the request is intercepted error-pages and gives a nice page. How can you make the router intercept all invalid requests?
The issue is; do you access nonexistig.domain.tld using https or http. Traefik doesn't know about if subdomains do exist so you need to have some logic and magic on the right places (which I was working on a while ago but did't finish yet)
Do you have a solution for the Traefik IP itself ? Same issue.
Can you give me a sample solution to get an error page from error-pages when accessing a non-existent subdomain?
The funny thing is that the subdomain to which it is addressed, once existed in my place and it has a certificate. When I access it, I get 404 and https.
But if I access a non-existent subdomain, I get SSL_ERROR
Example test.domain.com - standard 404 (there is a certificate. The request is logged on the server, But it does not transmit complete information about the client) test2.domain.com - SSL_ERROR (no certificate. The request is not logged on the server)
http://3234.domain.com:443 - 404 from error-pages (The request is logged on the server, and transmits complete information, including the country)