See this article:
Your upstream apps would need to support a “base path” config for it to work correctly, otherwise you’ll have problems.
In general, we recommend using subdomains because it’s essentially guaranteed to work without any complicated setup.