I have installed http-server
globally.
I launch it from myDir on localhost port 8080. In myDir I have index.html
.
If I request (from the browser) http://localhost:8080/
I get index.html, which is OK.
If I request though http://localhost:8080/anything
I do not get any response from the server.
What I would like, on the contrary, is that my server always responds with index.html to any http request reaching localhost on port 8080.
Is this possible.
Thanks in advance
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…