[英]How to bind express http and https server to same port
I want to run my express server on the same port using http & https我想使用 http 和 https 在同一端口上运行我的快速服务器
for eg例如
http http://example.com:3000
http http://example.com:3000
https https://example.com:3000
https https://example.com:3000
You can use httpolyglot.您可以使用 httppolyglot。
https://github.com/mscdex/httpolyglot https://github.com/mscdex/httpolyglot
It is a module for serving http and https connections over the same port.它是用于通过同一端口为 http 和 https 连接提供服务的模块。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.