HI,
my first attempt ton redirect http request always fail to a 404 page.
i would like to redirect http://localhost:80/containers/json to http://server_ip:2375/containers/json
could you point out what is wrong in my configuration file?
Please note that traefik.yml is usually static config, with providers.file you would load a different file (name) with dynamic config (routers, services). Use an absolute path to ensure to load the right file.
A "redirect" is a http response to tell the client/browser to visit a different address. You want Traefik to proxy/forward the request, correct?
Enable and check Traefik debug log (doc) during startup and request. Dynamic config file correctly loaded, router and service recognized?
Enable and check Traefik access log in JSON format (doc) during request. Is the right router used? Is http error status coming from target OriginStatus or Traefik itself?
Are you trying to build a Docker proxy? That can be solved with nginx (example).