我在ubuntu服务器上的nginx上运行了一个完全正常工作的Rails应用程序 . 我在我的应用上添加了Cloudflare . 然后,我在需要登录的页面上收到此错误:
SSL connection error
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error code: ERR_SSL_PROTOCOL_ERROR
我的网站可以从登录页面和其他非交互式静态页面访问 .
我还注意到,当它重定向到错误页面时,DNS成为URL上的IP地址,然后是相应的目录 .
我不知道接下来要去哪儿 .
此外,当我查看有关URL的网站信息时,它说
The identity of this website has not been verified.
1 回答
这是因为您网站的Nginx配置没有启用任何密码套件,CloudFlare可以使用这些密码套件连接到您的网站 . 这也可能意味着您的SSL配置不安全 .
您应该使您的SSL配置与CloudFlare一致,幸运的是CloudFlare发布了他们在Nginx配置中使用的密码 . 只需将其添加到您的Nginx SSL配置中,删除具有相同名称的属性: