我正在尝试使用openfire设置BOSH,启用它后,我已经为apache设置了代理
如下
<VirtualHost XX.XX.XXX.XXX:80>
ServerName mydomain.com
ServerAlias www.mydomain.com
DocumentRoot /home/mydomainname/public_html
ServerAdmin webmaster@mydomain.com
UseCanonicalName Off
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /http-bind/ http://www.mydomain.com:7070/http-bind/
ProxyPassReverse /http-bind/ http://www.mydomain.com:7070/http-bind/
<IfModule mod_suphp.c>
suPHP_UserGroup mydomainname mydomainname
</IfModule>
<IfModule !mod_disable_suexec.c>
SuexecUserGroup mydomainname mydomainname
</IfModule>
ScriptAlias /cgi-bin/ /home/mydomainname/public_html/cgi-bin/
</VirtualHost>
但是当我将 BOSH 连接设置为 /http-bind/ 或http://mydomain.com/http-bind
它在使用 strophe.js 发送 XMPP BOSH 请求时返回 404 ERROR
我需要在 apache2 中做任何事情吗?
我的设置在/etc/httpd/conf/httpd.conf
挖掘 www.mydomain.com
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.5 <<>> www.mydomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4697
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.mydomain.com. IN A
;; ANSWER SECTION:
www.mydomain.com. 14400 IN CNAME mydomain.com.
mydomain.com. 14400 IN A XX.XX.XXX.XXX
;; Query time: 61 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Dec 5 02:2
0:20 2012
;; MSG SIZE rcvd: 66
getent 主机 www.mydomain.com
XX.XX.XXX.XXX mydomain.com www.mydomain.com
卷曲http://www.mydomain.com:7070/http-bind/
HTTP ERROR 400
Problem accessing /http-bind/. Reason:
Bad Request
Powered by Jetty://