Authenticate only on DocRoot level path

Hi,

I'm trying to password / auth protect the document root level domain, such as https://msp.domain.com but then NOT password protect https://msp.domain.com/thispath

Is this possible? I'm currently using this to password protect the document root level (https://msp.domain.com) and it works fine:

labels:
  - "traefik.enable=true"
  - "traefik.http.routers.msp.rule=Host(`msp.domain.com`)"
  - "traefik.http.routers.msp.entrypoints=websecure"
  - "traefik.http.routers.msp.tls.certresolver=letsencrypt"
  - "traefik.http.services.msp.loadbalancer.server.port=8000"
  - "traefik.http.routers.msp.middlewares=msp-auth"
  - "traefik.http.middlewares.msp-auth.basicauth.users=test:$$2y$$12$$csdafsdfasf"

Any help would be much appreciated. Thank you

You probably need to use two routers.

Yes I have tried this with two routers. One using Path / (password protected) and one using Path /thispath

Still no luck

You are aware that Path(`/p`) only matches /p, not /p*? Maybe use PathPrefix() instead.