PathPrefix challenges

Hi all,

I am trying to direct https://octoprint.domain.com/* to host1:5000 but https://octoprint.domain.com/cam1/ ?action=stream to http://host1:8080/?action=stream

This is what I have in my dynamics configuration file:

http:
  routers:
    cam1:
     service: service-octoprint-cam1
     rule: Host(`octoprint.domain.com`) && PathPrefix(`/cam1/`)
     middlewares:
     - cam-prefix-strip
     entryPoints:
     - https

and:

    octoprint-secure:
      entryPoints:
      - https
      middlewares:
      - my-basic-auth
      - securedheaders
      service: service-octoprint
      rule: Host(`octoprint.domain.com`)
      tls:
        certResolver: dns

  middlewares:
    cam-prefix-strip:
      stripPrefix:
        prefixes:
        - /cam1

  services:
    service-octoprint:
      loadBalancer:
        servers:
        - url: http://host1:5000

        passHostHeader: false

    service-octoprint-cam1:
      loadBalancer:
        servers:
        - url: http://host1:8080

While the second router works works, https://octoprint.domain.com/cam1/ ?action=stream returns a 404, served by service-octoprint and not service-octoprint-cam1 (looking at the acces.log and identifying the service serving the 404)

Any idea what I am doing wrong, what a solution could be?

Anyone? Still haven’t figured this out.