使用HAProxy和Litespeed平衡器设置SSL是全新的,它只是使用.csr生成了我的证书,并且正在尝试让HAProxy终止SSL,然后将其发送给web工作者(Litespeed)进行处理。
下面是我的HAProxy配置的相关部分:
> frontend frontend-web
> bind x:80
> bind x:443
>
> default_backend webworkers ssl crt /etc/ssl/certs/folder/ prefer-server-ciphers ciphers RC4-SHA:AES128-SHA:AES256-SHAHA-Proxy版本1.5-dev19 2013/06/17 (刚刚更新,1.4没有工作)
不使用Cloudflare (我已经用键配置了它),我就可以得到"ERR_SSL_PROTOCOL_ERROR“,而使用Cloudflare,我得到了502个坏网关。
在我的/etc/ssl/certs/文件夹中,我有以下内容: gs_intermediate_ca.crt x.crt x.pem
x.pem和x.crt是完全相同的(应该是这样的吗?)
在HAProxy日志中我看到:9月2日20:50:41 localhost.localdomain haproxy六四八五:50.77.114.9:63791
2003年年9月:20:50:41.571前端-web前端-web/-1/-1/-1/-1/-5 400 187 -PR- 58/58/ 0/0 /0 /0“
发布于 2013-09-15 23:56:14
最后,您需要在版本1.5上编译带有特定参数的HAProxy,以允许使用SSL。
https://serverfault.com/questions/535757
复制相似问题