php method to change the website to https: 1. Apply for a free certificate in the Alibaba Cloud CA certificate; 2. Check the certificate status; 3. Modify the domain name configuration file.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
php How to change the website to https?
php Convert http to https Mini program deployment is online
Wow,,,,, I have been doing this for a long time! ! ! It’s actually very, very simple! ! ! !
The first time I contacted, I was confused, but then suddenly it was ok after I tried it. I could access https. I started getting a lot of errors, such as 502 Bad Gateway, 404 Not Found, etc. Error,,,, everyone said it was a configuration issue. Baidu later said it was a browser, firewall, and a series of other issues. I tried a lot, but it turned out not to be the case. It had nothing to do with those things! ! ! I hope the following operations will be helpful to PHP members. My configuration is Ubuntu, but it is all done under Linux. Centos should also be able to do it! ! ! ! ! I see that Java only writes it into another server! Just follow the steps! ! ! So it doesn’t matter~~~~·Hurry up and try it!
1. Go to Alibaba Cloud CA Certificate to apply for a free certificate, click Complete, and fill in your domain name! ! ! In order to facilitate access to the mini program account, but when filling in personal information, be sure to check the box, otherwise the review will take a long time and it may not be successful! ! ! Just follow the steps to apply.
Expand and see if you reported the following error! ! ! !
1. 502 Bad Gateway Error 404 Not Found Error
They say my configuration is wrong. I still don’t know what the error is. Then I went to the error log and the following error was reported.
Still can’t figure it out. What is this error? I have no solution... I was frustrated for a long time! ! ! ! !
Here is another way of writing that a friend introduced,,, let me show you~~~~~~~~~
The writing methods of JAVA are similar (I have tried them all)
PHP Video Tutorial"
The above is the detailed content of How to change website to https in php. For more information, please follow other related articles on the PHP Chinese website!