lwsjs / local-web-server

A lean, modular web server for rapid full-stack development.
MIT License
1.21k stars 85 forks source link

Please how can we use lws to server both http and https from the same port, like httpolyglot? #61

Closed CharlesOkwuagwu closed 7 years ago

CharlesOkwuagwu commented 7 years ago

Please how can we use lws to server both http and https from the same port, like https://github.com/mscdex/httpolyglot ?

Thanks

75lb commented 7 years ago

sorry, lws does not support that feature. HTTP is served over port 80, HTTPS over port 443 - I don't understand why anyone would want to run both on the same port.

CharlesOkwuagwu commented 7 years ago

just for testing on localhost

75lb commented 7 years ago

could you run two instances of lws - one on port 80, one on port 443?

CharlesOkwuagwu commented 7 years ago

no, we don't typically have access to the default ports for localhost.

Lws is so well suited for this task, as it gives full control of the pile-line, if only i could figure out how to bring in the concepts from httpolyglot into lws, it would be an ideal fit for testing https on localhost

75lb commented 7 years ago

how about running an http lws on 8000 and an https lws on 8100? I still don't understand why running both on the same port is necessary - it would never happen in a production environment..