I have installed http-server globally.
http-server
I launch it from myDir on localhost port 8080. In myDir I have index.html
index.html
Use as specified in the documentation.
http-server --port 8080 -P http://localhost:8080?
Note the ? at the end of the proxy URL.
?