Http --> https and https://server/web1 to docker https://web1.local:8443/

Hello @cakiwi,
You have a very good topic on redirect and it think it is nearly the same problem as me.

Basically in my setup I have a server running podman (very similar do docker)
The containers all exist in a private internal network and I have only exposed port 80 and 443 to the outside from traefik.

The issue I have is when i type "https://server.domain/phabricator/" traefik picks it up but redirects to "https://phabricator-app.dns.podman:8443/"
However I just wanted it to do reverse proxy, it would fetch https://phabricator-app.dns.podman:8443/ which is only accesible from traefik and present it under https://server.domain/phabricator/

I was wondering if you could help me understand what is wrong, i am not sure i am using the middlewares correctly.


static conf (traefik.toml)

    address = ":80"
    insecure = true
  insecure = true
  dashboard = true

    directory = "/etc/traefik/conf"
    watch = true

  # Standard HTTP
    address = ":80"
    insecure = true
  # Standard HTTPS
    address = ":443"

## To allow reverse proxy between ssl
  insecureSkipVerify = true

this is my dynamic conf

## Global redirect
  ## Redirects everything to https
    entryPoints = ["http"]
    tls = true
    middlewares = ["httpsredirect"]
    rule = "HostRegexp(`{host:.+}`)"
    service = "noop"

    entryPoints = ["https"]
    tls = true
    rule = "PathPrefix(`/phabricator{regex:$$|/.*}`)"
    middlewares = ["redirectregex-phabricator"]
#    middlewares = ["https-headers"]
    service = "phabricator-app"

      url = "https://phabricator-app.dns.podman:8443/"

    scheme = "https"
    permanent = true
    regex = ".*"
    replacement = "https://phabricator-app.dns.podman:8443/"
    permanent = true

      certFile = "/etc/traefik/cert.crt"
      keyFile = "/etc/traefik/priv.key"