ejabberd_http to listen on two ports

is it possible for ejabberd_http to listen on two ports:

  {5281, ejabberd_http, [
                         {request_handlers, [
			 	{["web"], mod_http_fileserver}
			 ]}
			]},

  {5280, ejabberd_http, [
			 http_bind, 
			 http_poll, 
			 web_admin
			]}

I tried above, http://hostname:5281/web just timed out. But http://hostname:5280/admin works.

Actually I want access to http://hostname:port, not with additional path like http://hostname:port/web.

If I try the below (no path to mod_http_fileserver), then
http://hostname:5280/admin does not work.

  {5280, ejabberd_http, [
			 {request_handlers, [
			 	{[], mod_http_fileserver}
			 ]},
			 http_bind, 
			 http_poll, 
			 web_admin
			]}

Any solution to have http://hostname:port and http://hostname:port/admin work together?

Thanks

Your first config should

Your first config should work. It works for me. Try setting another port number. Try switching port numbers. Try setting all in 5280.

Your second config won't work, there isn't solution inside ejabberd.

Syndicate content