在mongooseIM中启用ejabberd Web界面

时间:2015-04-27 13:55:53

标签: mongoose-im

当我执行bin / mongooseim启动并且mongooseim正在运行时,我将网址127.0.0.1:5280/放在网页上的白页上,我认为这意味着ejabberd_cowboy(具有港口5280)正在听,但我还没有ejabberd的界面。

在ejabberd.cfg中,我为Cowboy设置了这些行

{listen,
[
%% HTTP endpoints
{ {{cowboy_port}}, ejabberd_cowboy, [
{num_acceptors, 10},
{max_connections, 1024},
{modules, [
Modules used here should also be listed in the MODULES section.
{"localhost", "/api", mongoose_api,
[{handlers,[mongoose_api_metrics,mongoose_api_users]}]},    
{"_", "/http-bind", mod_bosh},
{"_", "/ws-xmpp", mod_websockets}
%% Uncomment to serve static files
%{"_", "/static/[...]", cowboy_static,
%  {dir, "/var/www", [{mimetypes, cow_mimetypes, all}]}
%},
]}]},

0 个答案:

没有答案