node.js - 为什么小程序官方demo的nodejs版后台,没有引入https
PHP中文网
PHP中文网 2017-04-17 16:09:48
0
1
599

这里只看到了require了http,但是因为小程序是要用https的,看来好多其他的示例代码也到看不到https,不知道是否和nginx有关,如果是,需要在nginx如何配置使之关联。我的nginx已经可以做到https://www.mywebsite.com访问index页面了,请问下一步应该如何关联,请教大神。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
Peter_Zhu

nginx’s forwarding basically has nothing to do with what protocol and port you use internally.
You can take a look at nginx reverse proxy related knowledge.

If you have time and trouble, you can directly import the https module, basically there is no problem

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template