I have installed http-server using the following command:
npm i -g http-server
Upon running the server I get the response saying Running on 127.0.0.1:8080
My call looks like this:
http-server -a 0.0.0.0 -c-1
If I go to 127.0.0.1:8080
or 10.1.1.72:8080
I get:
This page is not working.
127.0.0.1:8080 sent an invalid response
ERR_INVALID_REDIRECT
I have googled and searched everywhere with no answer as to what actually solves this. I'm not using XAMPP or IIS just a blank node server.
Node.js: 11.12.0
npm: 6.7.0
OS: Windows 10
I have checked my host files. there is nothing relevant there. I have no idea what would be causing this. I don't use .htaccess files or Web.config files either.
If you need further information let me know.
Notes
If I go to localhost:8080/index.html
I can get to my app. This isn't supposed to work like that though.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…