ejabberd - Comments for "Trying to make http-bind and filserver work at same time for crossdomain.xml" https://www.ejabberd.im/node/4557 en Please give a detailed steps https://www.ejabberd.im/node/4557#comment-57497 <p>Please give a detailed steps for configuring ejabberd 2.1.8 version in order to load crossdomain.xml file. And where should I keep the crossdomain.xml file.</p> Wed, 15 Jun 2011 05:51:49 +0000 rafay comment 57497 at https://www.ejabberd.im I found three https://www.ejabberd.im/node/4557#comment-57095 <p>I found three alternatives:</p> <p>1.</p> <p>The obvious solution is to place each service in a different port, like</p> <pre> {5280, ejabberd_http, [ {request_handlers, [ {[], mod_http_fileserver} ]} ]}, {5281, ejabberd_http, [ http_bind ]} </pre><p>That allows you:<br /> <noindex><a href="http://localhost:5280/crossdomain.xml" title="http://localhost:5280/crossdomain.xml" rel="nofollow" >http://localhost:5280/crossdomain.xml</a></noindex><br /> <noindex><a href="http://localhost:5281/http-bind/" title="http://localhost:5281/http-bind/" rel="nofollow" >http://localhost:5281/http-bind/</a></noindex></p> <p>2.<br /> In the past, it seems some people liked this:<br /> <a href="http://www.ejabberd.im/flash-policy-file" title="http://www.ejabberd.im/flash-policy-file">http://www.ejabberd.im/flash-policy-file</a></p> <p>3.<br /> I found this solution today, maybe this is just what you wanted:<br /> Configure like this:</p> <pre> {5280, ejabberd_http, [ {request_handlers, [ {["crossdomain.xml"], mod_http_fileserver} ]}, http_bind ]}, </pre><p>I think that allows you:<br /> <noindex><a href="http://localhost:5280/crossdomain.xml" title="http://localhost:5280/crossdomain.xml" rel="nofollow" >http://localhost:5280/crossdomain.xml</a></noindex><br /> <noindex><a href="http://localhost:5280/http-bind/" title="http://localhost:5280/http-bind/" rel="nofollow" >http://localhost:5280/http-bind/</a></noindex></p> Wed, 23 Feb 2011 12:53:37 +0000 mfoss comment 57095 at https://www.ejabberd.im