我有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证书TrustWave Premium SSL
机构。
解决了。 您需要将“ssl”添加到监听的结尾。
listen 443 ssl;
尝试通过SSL(https)访问站点时,浏览器遇到此错误,但实际上在该端口正常的HTTP服务器上运行。