How do I serve Stash in a subpath?

The basepath defaults to / . When running stash via a reverse proxy in a subpath, the basepath can be changed by having the reverse proxy pass X-Forwarded-Prefix (and optionally X-Forwarded-Port ) headers. When detects these headers, it alters the basepath URL of the UI.