What problem does this feature solve?
The documentation for HTML5 History Mode - Example Server Configurations assumes all apps are running at the document root (ie /). Apps using a non-root publicPath are going to struggle with these config examples.
What does the proposed API look like?
Update the examples to include <publicPath> placeholders, eg
nginx
location <publicPath> {
try_files $uri $uri/ <publicPath>/index.html;
}