To run the UI off a subpath, you'd likely need to modify your UI's "nameSpace" setting to specify that path:
https://github.com/DSpace/dspace-angular/blob/dspace-7.1/src/environments/environment.common.ts#L15
So, this should likely be
nameSpace: '/dspace',
You also will need to modify the '<base href="/">' tag in both the "index.html" and "index.csr.html" to have that same path: '<base href="/dspace/">'. Those lines that you need to modify are at:
and
Then, you may be able to get your ProxyPass settings to work like this...
Unfortunately, though, I've found that this setup doesn't fully work as expected (it's a bug in 7.1 which should be fixed in 7.2 due on Feb 7). While the above setup will get your UI to respond on
http://localhost:4000/dspace/, some of the styles appear to not be loaded properly. I've just created a PR to fix this in 7.2 which you might be able to use to guide you in getting this to work correctly in 7.1. See
https://github.com/DSpace/dspace-angular/pull/1488 Or, you could wait for the 7.2 release, which is due out on Feb 7.
Your other alternative would be to create a new subdomain (e.g. dspace.your.url), which would work perfectly OK with the UI running at
http://localhost:4000/
If you have more questions, let us know on this list
Tim