Hello,
I have 2 servers behind the same IP address and I'm trying to get Traefik hosted on one server to point to the other server when a specific subdomain is used.
I've followed the Digital Ocean guide here to setting up Traefik and have searched and found some others with the same issue as me.
However, even after reading replies to their posts, I can't figure out what I'm doing wrong and when I modify my traefik_dynamic.toml file, not only does the subdomain not point to the other server, the traefik subdomain results in a 404s.
Could any kind soul please point me in the right direction? Do I need 2 files for definition of 2 subdomains?
Here's what my traefik_dynamic.toml looks like
[http.routers]
[http.routers.api]
rule = "Host(`traefik.my domain`)"
entrypoints = ["websecure"]
middlewares = ["simpleAuth"]
service = "api@internal"
[http.routers.api.tls]
certResolver = "lets-encrypt"
[http.routers.external]
rule = "Host(`foo.my domain`)"
entrypoints = ["websecure"]
service = "foo"
[http.routers.external.tls]
certResolver = "lets-encrypt"
[http.routers.external.foo.loadBalancer]
servers = "192.168.1.100:8096"