scottcorgan / pushstate-server

Static file server that works with HTML5 Pushstate.
421 stars 35 forks source link

Support virtual path prefix. #51

Open AndersDJohnson opened 7 years ago

scottcorgan commented 7 years ago

Can you elaborate just a bit more? Not sure I fully understand.

AndersDJohnson commented 7 years ago

@scottcorgan A virtual path prefix would be an optional argument that instead of serving files at the root path / under the given local port, e.g. /index.html, it would instead serve under a virtual sub-path that doesn't exist in the file system e.g. /sub/path/index.html if you passed e.g. --path=sub/path.