apache2设置bosh for openfire

时间:2015-07-16 12:18:23

标签: apache2 xmpp bosh

我在设置网络聊天的BOSH服务时遇到问题。作为XMPP服务器,我使用OpenFire,我已经能够使用Pidgin客户端连接到服务器。我所做的是以下内容: 首先,我使用a2enmod proxy proxy_http启用了代理。然后我去编辑proxy.conf并在最后添加了这些

ProxyVia On
ProxyErrorOverride On
ProxyPass /http-bind http://localhost:7070/http-bind
ProxyPassReverse /http-bind http://localhost:7070/http-bind

然而,当我尝试到达http://example.com/http-bind时,我得到以下内容:

HTTP ERROR: 400

Problem accessing /http-bind/. Reason:

Bad Request

Powered by Jetty://

我做错了什么?

1 个答案:

答案 0 :(得分:0)

事实上没有任何错误。 当你看到结果,它测量你的所有代理设置是正确的,因为http-bind需要接受POST(xml格式)数据作为其真实请求,这就是openfire服务器向你返回404的原因。