Authenticate only on DocRoot level path


I'm trying to password / auth protect the document root level domain, such as but then NOT password protect

Is this possible? I'm currently using this to password protect the document root level ( and it works fine:

  - "traefik.enable=true"
  - "traefik.http.routers.msp.rule=Host(``)"
  - "traefik.http.routers.msp.entrypoints=websecure"
  - "traefik.http.routers.msp.tls.certresolver=letsencrypt"
  - ""
  - "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.