Hello. I hope, someone can help me. I try to forward my request through traefik with a dynamic file configuration:
[http]
# Add the router
[http.routers]
[http.routers.router0]
entryPoints = ["web"]
service = "service-foo"
middlewares = ["middleware-replacepath"]
rule = "Path(`/foo`)"
# Add the middleware
[http.middlewares]
[http.middlewares.middleware-replacepath.replacePath]
path = "/imghp"
# Add the service
[http.services]
[http.services.service-foo.loadBalancer]
passHostHeader = true
[[http.services.service-foo.loadBalancer.servers]]
url = "http://www.google.de"
Now i call this url in my Browser (http://localhost/foo) and i expect to see google`s image site, but i get a 404 from google. It seems, that traefik first resolves the domain into the ip.
Google is only an example, i use an own external domain
Is it not possible or is my configuration wrong?
Thanks in advance