ejabberd localhost 连接中断但日志显示连接已被接受

ejabberd localhost the connection was interrupted but logs say connection was accepted

美好的一天

我对 ejabber 完全陌生。我已经在 debian 上(在虚拟机上)安装了 ejabber,但是当我尝试用本地主机 (http://localhost:5280/admin) 检查它时,mozilla 以公告 "the connection was interrupted" 回应。我检查了 ejabber 的日志,它在端口 5280 上有多行接受连接。

2018-06-02 14:27:50.526 [info] <0.491.0>@ejabberd_listener:accept:333 (#Port<0.12507>) Accepted connection ::1:32948 -> ::1:5280

2018-06-02 14:27:50.534 [info] <0.635.0>@ejabberd_http:init:163 started: {fast_tls,{tlssock,#Port<0.12507>,#Port<0.12508>}}

这是什么原因,我该如何解决这个问题?

您已将 ejabberd 配置为在端口 5280 上使用 TLS(请参阅:tlssock 在您的日志中),但您在尝试连接到它时使用的是普通 HTTP (http://localhost:5280)。

假设您的证书已在 ejabberd 中正确配置,您应该使用 HTTPS 连接到它。