You’re running into the issue described in this article:
I strongly recommend that you use subdomains for each service instead of serving them all under different subpaths.
Many services are not designed to be run under a different subpath. It’s not something you can really solve directly with Caddy. It’s easiest to just give those services a whole subdomain instead, if they don’t have configuration options to allow changing the “base path”.