Debug / http-bind /发布Openfire

时间:2012-03-30 08:31:19

标签: xmpp openfire

我使用openfire将xmpp发送到我的网站。我已完成服务器移动并将该站点重新定位到与openfire相同的服务器上,因为它们之前都在不同的服务器上。

由于移动我在我的网站上的/ http-bind / request上获得了错误500.

我如何调试这个或我需要考虑什么可能导致错误500 on / http-bind /

错误日志

[warn] proxy:没有协议处理程序对URL / http-bind /有效。如果您使用的是DSO版本的mod_proxy,请确保使用LoadModule将代理子模块包含在配置中。

2 个答案:

答案 0 :(得分:0)

简短回答:您需要在Apache中加载“proxy_http”模块。

我在setting up BOSH with Apache的Prosody文档中写了一些说明,但是它们应该同样适用于任何BOSH / XMPP服务器。特别是我不确定Openfire是否会对/http-bind/http-bind/进行挑剔。因此,如果以下说明无效,请尝试将/添加到网址末尾。

<强>摘要

运行:sudo a2enmod rewrite proxy proxy_http

将以下行添加到Apache配置中:

<Location /http-bind>
   Order allow,deny
   Allow from all
</Location>
RewriteEngine On
RewriteRule ^/http-bind$ http://example.com:5280/http-bind [P,L]

答案 1 :(得分:0)

我想补充一点,使用正确配置的服务器,您可以将它放在您的.htaccess中,放在您的网络文件夹的根目录中:

<IfModule mod_rewrite.c>
RewriteEngine On

# Rule1
RewriteCond %{REQUEST_URI} ^/chat1/http-bind
RewriteRule ^.*$ http://chatsrv1.joynmenow.com:7070/http-bind/ [P,L]

# Rule 2
RewriteCond %{REQUEST_URI} ^/chat2/http-bind
RewriteRule ^.*$ http://chatsrv2.joynmenow.com:7070/http-bind/ [P,L]

</IfModule>

我不确定在.htaccess中允许这样做需要什么配置但是我的godaddy VPS允许我在默认配置中执行此操作。

相关问题