2012-03-30 81 views
1

我使用openfire的xmpp到我的網站。我已經完成了一個服務器移動,並將該站點重新定位在與openfire相同的服務器上,因爲之前它們都位於不同的服務器上。調試/ HTTP綁定/問題Openfire

由於移動im在我的網站上的/ http-bind /請求獲得錯誤500。

如何調試這還是什麼我需要考慮的是可以在/ HTTP綁定導致錯誤500/

錯誤日誌

[警告]代理:無協議處理程序是有效的URL/http-bind /。如果您使用的是mod_proxy的DSO版本,請確保代理子模塊包含在使用LoadModule的配置中。

+0

錯誤日誌顯示[warn] proxy:沒有協議處理程序對URL/http-bind /有效。如果您使用的是mod_proxy的DSO版本,請確保代理子模塊包含在使用LoadModule的配置中。 – GarytheWorm 2012-03-30 11:30:24

回答

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] 
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允許我在默認配置中執行此操作。