[solved] Rules Host and PathPrefix Issues

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 (/dav)"
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.

Thank you.

I used the X-Script-Name header and it did it.

Thanks man, it worked.

Would you be willing to show your config the the X-Script-Name header?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.