【问题标题】:Debug /http-bind/ issue Openfire调试 /http-bind/ 问题 Openfire
【发布时间】:2012-04-13 22:22:26
【问题描述】:

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

自从移动我在我的网站上的 /http-bind/ 请求上收到错误 500。

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

错误日志

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

【问题讨论】:

  • 错误日志显示 [警告] 代理:没有协议处理程序对 URL /http-bind/ 有效。如果您使用的是 DSO 版本的 mod_proxy,请确保代理子模块包含在使用 LoadModule 的配置中。

标签: xmpp openfire


【解决方案1】:

我想通过正确配置的服务器添加它,您只需将它放在您的网络文件夹根目录下的 .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 允许我在其默认配置中执行此操作。

【讨论】:

    【解决方案2】:

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

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

    总结

    运行: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]
    

    【讨论】:

      猜你喜欢
      • 2012-01-03
      • 2012-11-20
      • 2013-03-04
      • 1970-01-01
      • 1970-01-01
      • 2012-06-24
      • 2012-11-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多