无法通过HAProxy登录roundcube
Posted
技术标签:
【中文标题】无法通过HAProxy登录roundcube【英文标题】:Can't log in to roundcube through HAProxy 【发布时间】:2018-11-16 04:15:32 【问题描述】:对于学校项目,我们必须设置网络邮件。我选择了 iRedMail。我们选择了 HAProxy 作为我们其他服务(webhosting、openvas、VPS)的负载平衡服务。负载平衡器将用户发送到我创建的正确 iRedMail 服务器,但是当我尝试使用现有帐户登录时(如果我在没有负载平衡器的情况下直接在 iRedMail 服务器圆形立方体页面上使用该帐户登录,它可以工作)我不能登录并收到消息:“无效请求!未保存数据”。
HAProxy 配置文件 /etc/haproxy/haproxy.cfg 具有以下配置:
frontend http
bind 10.2.80.14:80
mode http
acl host_mail hdr(host) mail.8.transtcp.com
use_backend mail if host_mail
backend mail
balance roundrobin
cookie SERVERID insert indirect nocache
cookie JSESSIONID prefix nocache
option forwardfor
reqadd X-Forwarded-Proto:\ http
server mail 192.168.20.9:443 check cookie s1 ssl verify none
正如您所见,cookie 和转发 http 已尝试,但没有成功。我没有做什么是必需的?
【问题讨论】:
【参考方案1】:已经得到答案:没有有效的 SSL 证书,HAProxy 无法到达 Roundcube 的后端。添加有效的 SSL 证书即可解决。
【讨论】:
以上是关于无法通过HAProxy登录roundcube的主要内容,如果未能解决你的问题,请参考以下文章