參考資料:https://www.bt.cn/bbs/thread-87880-1-1.html
本文鏈接:https://www.yuque.com/cgsgood/dshx0b/erg6ni
在根據(jù)此鏈接,配置SSL證書時,https://cloud.tencent.com/document/product/400/50874
有以下報錯:
nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /www/server/panel/vhost/nginx/wordpress.local.conf:1
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
遇到此報錯后,先升級了寶塔,然后還是報錯。
于是,在寶塔面板上:

image.png
找到配置文件,填入了以下代碼后,重新保存SSL就解決了。
#SSL-START SSL相關(guān)配置,請勿刪除或修改下一行帶注釋的404規(guī)則
#error_page 404/404.html;
#SSL-END