在ejabberd中找不到crossdomain.xml

时间:2012-02-09 19:16:29

标签: xmpp cross-domain ejabberd bosh

我配置了ejabberd服务器,但我无法访问http://www.example.com:5280/crossdomain.xml

我在ejabberd.cfg中设置了以下参数

Listners

{5280, ejabberd_http, [
                        {access,all},
                         {request_handlers,
                          [
                           {["pub", "archive"], mod_http_fileserver},
                           {["xmpp-http-bind"], mod_http_bind}
                         ]},
%%                       captcha,
                         http_bind,
                         http_poll,
                         register,
                         web_admin
                        ]}

模块

  {mod_http_fileserver, [
                        {docroot, "/var/log/ejabberd/"},
                        {accesslog, "/var/log/ejabberd/access.log"},
                         {content_types,[{".xml, text/xml"}]}
                      ]},
  

crossdomain.xml出现在此路径的centos“/ var / log / ejabberd /”

任何人都可以帮助解决这个问题,我听说对于crossdomain.xml我们也可以配置apache webserver,但我不知道怎么做?

1 个答案:

答案 0 :(得分:2)

我猜你正在使用Strophe和ejabberd。 crossdomain.xml与ejabberd无关,它与配置flash以执行跨域请求有关。 当然你不需要闪存,最好通过在前面使用代理来完全避免闪存。您可以使用apache或nginx或任何其他。 Here是nginx的教程。