Forward_auth with strip_prefix

So the directive order list is here. uri works before forward_auth. You can use the route directive to evaluate the directives as a single unit, and in that order. You could also use the global option order, but I would only do that if you plan on always having to do this.

Is there a more efficient way of configuring your Caddyfile? No idea, I’m not that great at it.