【发布时间】:2018-11-08 11:51:00
【问题描述】:
我有一个通过运行 node osjs run --hostname=dc-619670cb94e6.vtxfactory.org --port=4100 在 SSH 上设置的节点应用程序。
它从 http://dc-619670cb94e6.vtxfactory.org:4100/ 开始没有问题,但我想通过 HTTPS https://dc-619670cb94e6.vtxfactory.org:4100/ 提供它,我收到错误 ERR_CONNECTION_CLOSED。
如果我使用该端口,我无法通过 https 访问它,但https://dc-619670cb94e6.vtxfactory.org/ 可以访问。
如何通过 Https 服务于 4100 端口?
谢谢。
【问题讨论】:
-
你试过
server.listen(4100)吗? -
喜欢这个?
<VirtualHost *:80> ServerName dc-619670cb94e6.vtxfactory.org ProxyPass / http://https://dc-619670cb94e6.vtxfactory.org:4100/ Listen 4100 </VirtualHost>
标签: node.js ssl https port os.js