Reverse proxy from HTTPs to HTTP by assigned port

Hi,

Can someone please help me with Traefik configuration, I'm stuck when redirected to the given application.

What I want:

I need TRAEFIK to redirect from https://my.domain.com /wing

to an FTP server under e.g. "http://host.docker.internal:8220" which runs as a windows service

the service itself at "http://host.docker.internal:8220" runs fine

but when I want to access via HTTPS it says 404 page not found

here is the config=

docker-compose.yml

services:
  traefik:
    image: traefik:v2.9
    container_name: traefik
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - "/run/desktop/mnt/host/j/Cloud-vlastni_file_server/Traefik-Reverse-Proxy/traefik.yaml:/etc/traefik/traefik.yaml"
      - "/run/desktop/mnt/host/j/Cloud-vlastni_file_server/Traefik-Reverse-Proxy/data:/data"
      - "/var/run/docker.sock:/var/run/docker.sock:ro"


traefik.yaml

log:
  level: debug

entryPoints:
  websecure:
    address: ":443"

providers:
  docker:
    exposedByDefault: false

certificatesResolvers:
  myresolver:
    acme:
      email: "N/A"
      storage: "/data/acme.json"
      tlsChallenge: {}

http:
  routers:    
wing:
      rule: "Host(`my.domain.com`) && PathPrefix(`/wing`)"
      entryPoints:
        - websecure
      service: wingftp
      tls:
        certResolver: myresolver
      middlewares:
        - replace-wing-path

  middlewares:
    replace-wing-path:
      replacePath:
        path: "/"

  services:
    wingftp:
      loadBalancer:
        servers:
          - url: "http://host.docker.internal:8220"

Thanks

http as root element is Traefik dynamic config and needs to go into a separate file, loaded by providers.file in static config.

thanks, I've moved a bit, now I'll move it from https://my.domain.com/ wing to https://my.domain.com/ login.html and then I'll get a 404 page not found = is it a problem in the wingFTP SW itself or is there still a need to set something in traffic? thanks a lot

it looks like for / failed to redirect?