content
background
Because the background server of the applet must use https, otherwise it cannot be used, so you need to configure an SSL certificate on the new server
text
I had a Tencent Cloud server before, and it was very fast to configure SSL at that time, but the Alibaba Cloud server was not enough.
The link to configure SSL tutorial is as follows
https://jingyan.baidu.com/article/64d05a022e6b57de54f73b51.html (Add a vhostssl.conf file for SSL configuration)
https://blog.csdn.net/my0592/article/details/79285942 (directly open the httpd-ssl.conf file in conf/extra)
I have tried all the methods on the Internet, but the result is still unable to access https
I thought it was a configuration problem, so I reinstalled phpStudy several times, and finally thought it was a phpStudy problem
I reinstalled xampp, but it still doesn't work
But my 443 port has been opened, and the SSL certificate is no problem
As a result, I checked it and found that there is no port 443 in the ports opened by default on the Alibaba Cloud server ! ! !
Add security group rules
Log in to Alibaba Cloud -> Management Console -> Cloud Server ESC
enter security group
Click Configure Rules
Add security group rules
Fill in the port range and authorization object according to the figure -> OK
Restart Apache, OK
Summarize
When configuring httpd.conf or other conf files, remember to back up the original files first, to avoid changing it many times.
Friends of Alibaba Cloud Server, if you cannot access https, you can check the security group rules to see if port 443 is allowed
Keep filling the hole, the road is easy to go.