In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about how to open the https protocol in Nodejs. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Then write some records of the full stack development of nodejs.
The technology stack selected in this series:
Nginx+nodejs+express+mongodb+docker
Completed articles:
01 nginx configuration file for full stack of Nodejs
Update the second article today.
When developing WeChat Mini Programs, you need the back-end interface service, then the back-end server also needs to activate the https protocol.
Based on Aliyun, we applied for a free CA certificate, mainly to modify the configuration file of nginx and complete the implementation of the https protocol.
1.
To purchase a CA certificate, find the certificate you just purchased in the CA Certificate Service in the console, and click: complete Information
Fill in the form as required and submit it.
After waiting for some time, check it again and click download.
two。
Choose to download the certificate for nginx
Download the certificate and upload the ssh to Ali ecs server. Specifically, upload it to the folder where the nginx is located. Refer to the terminal command:
Scp cert.key root@118.xx.xxx.xxx:/etc/nginx/cert.key
Scp cert.pem root@118.xx.xxx.xxx:/etc/nginx/cert.pem
3.
Then, modify the configuration file of nginx, and the download page has detailed configuration instructions.
4.
After the modification is successful, restart nginx:
The terminal first logs in to the ecs server with ssh, and then enters:
Nginx-s reload
5.
If the browser accesses the https+ domain name, the configuration is successful.
The above is how to open the https protocol in the Nodejs shared by the editor. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.