Node.js + Express.js + SSL协议
有没有一种方便的方法来使用 ExpressJS(NodeJS 框架)来处理 SSL 连接?
Possible Duplicate:
How to set up HTTPS server in Express js (Node.js)?
Is there a convenient way to use ExpressJS (framework for NodeJS) to handle SSL connections?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你需要配置一个反向代理(nginx、Apache)。这并不是特定于 Node 的;不过我还没有尝试过,所以我不知道 Node/Express 是否有任何特殊的问题。
v0.3.4 包含改进的 https 模块,但我相信 Express 作者已声明不支持被归类为不稳定(奇数)版本的 v3。当然,Node 仍处于起步阶段,因此不稳定将成为未来一段时间内的常态。
几天前我问过这个问题:
Node.js + SSL 支持
I think you'd need to configure a reverse proxy (nginx, Apache). This isn't particularly Node-specific; however I haven't tried it yet so I don't know if there are any particular gotchas with Node/Express.
v0.3.4 includes an improved https module, but I believe the Express author has stated that v3, classified an unstable (odd-numbered) release, isn't supported. Of course Node's still in its infancy so instability will be the rule for some time to come.
I asked about this a few days ago:
Node.js + SSL support