I've always had issues with understanding and getting PathPrefix and middlewares to work.
For example, Radicale.
My rule is "Host(
sub.domain.com) && PathPrefix (
I have a label stripping the PathPrefix of "/dav". It gets me to the "/.web" interface, but I get a 404 when I try to log in.
I have similar issues with other applications using PathPrefix. I believe the issue to be the links in Radicale and other applications not including the "/dav" prefix, therefore 404ing.
How do I go about fixing this? I fixed this on another application by adding referrer and Path rules, but that seems verbose and not the ideal situation.
I used the X-Script-Name header and it did it.