Here are some options, sorted by, in my opinion, the more viable and easy solutions first:
1. Use subdomains, as Alex proposed
No modification to the source files, which means it could be easily updated when you vendor updates it.
You'll need to apply this method to all HTML files, you can create a simple middleware to get the job done.
3. Re-write all URLs
If all urls are not relative and start with a known string, you can simply create a middleware to rewrite the prefix of those URLs.
It does mean you may have to apply such a middleware to not only the HTML files, but to CSS, JS and other assets. (probably all non-binary files.)
Finally, if you're going to create a middleware to accomplish #2 or #3, you'll need to create a
Transform stream and use either string replacement or a DOM/HTML/XML parser to manipulate the content.
Some packages I use that could be helpful to you:
* HTML/DOM helper:
cheerio is very simple and useful as well. If you know jQuery, you'll be all set :-)