Last update at :2024-06-21,Edit by888u
Today Snail is solving the problem of deploying HTTPS on an enterprise website using a paid SSL certificate, so it is a little more troublesome than deploying a free SSL certificate in a one-click environment because Nginx files need to be configured. As usual, we download the SSL certificate, merge the CRT file and store it in the corresponding directory, and then reference the file in the .conf file of the website.
Generally, after configuring the SSL certificate, you need to use the nginx -t command to check whether it is normal. But this time it turned out that there was an error. The error message is \\"nginx: [warn] \\"ssl_stapling\\" ignored, host not found in OCSP responder\\". Then check if there is a similar situation on the Internet. Some say it is a certificate problem, and some say it is a website configuration problem.
Theoretically, there is no problem with the certificate, because one of the paid certificates is a KEY file and the other is a CRT file. Even so, I copied and checked the website configuration files from other certificate sites that had no problem. Then check that the website is normal because it is running normally under HTTP.
Then Snail referred to this article: http://www.voidcn.com/article/p-aiuknkos-btz.html. It mentioned that it might be a DNS problem, so he checked the DNS of this server and found that it seemed not configured. DNS. This article mentioned modifying the DNS in the conf file, but it didn't work after I modified it. I modified the DNS directly in the server.
nameserver 8.8.8.8nameserver 8.8.4.4
Modify DNS in the /etc/resolv.conf file. Of course, we need to fix the DNS, because if the settings are not fixed, they will become invalid after restarting. You can refer to the settings of \\"Solving the problem of changing DNS configuration and restarting failure under Ubuntu server\\".
Finally, after restarting the server, check that there is no problem with nginx. Of course, there is no problem with the SSL certificate configuration.
Recommended site searches: foreign vps server rental, registration-free hosting in mainland China, the latest free agent IP, foreign trade hosting, free domain name space, rented server, dual-line hosting rental, dynamic network hosting website server hardware configuration, Hong Kong virtual hosting,
发表评论