Fiddled around with nginx proxy_pass for 30minutes. Achieved what I wanted with
<base href="…"> …

Tue, 25 Aug 2015 18:13:46 UTC1