我的 nginx 具有以下设置:
server {
listen 80;
server_name site.com www.site.com;
root /home/site/public_html;
listen 443;
#server_name site.com www.site.com;
#root /home/site/public_html;
ssl_certificate /root/site.pem;
ssl_certificate_key /root/site.key;
但是,当我查看 SSL 连接时,我得到:
An error occurred during a connection to grewpler.com.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
我正在TrustWave Premium SSL
用作 SSL 证书颁发机构。
解决了。您需要将“ssl”添加到侦听的末尾。
我在尝试通过 SSL(https) 访问站点时在浏览器中遇到此错误,但实际上在该端口上运行的是正常的 HTTP 服务器。