Host not served (ejabberd)

假如想象 提交于 2020-01-24 01:46:06

问题


I'm using out of the box ejabberd/ecs - Docker Hub and I've tried to run curl command (from my own container) to register the user , yet got following message:

Host not served

actual curl command w/ output:

/app # curl -ks --request POST https://ejabberd:5443/api/register --data '{"user":"test","host":"localhost","password":"testing"}'
Host not served
/app # 

As far as Docker goes, both my app and ejabberd containers are both in same network.

Please advise.


ejabberd.yml just in case.


回答1:


I was able to address my issue by adding container name as my hosts:

# grep -A2 hosts ./home/ejabberd/conf/ejabberd.yml 
hosts:
  - localhost
  - ejabberd
# 


来源:https://stackoverflow.com/questions/58273293/host-not-served-ejabberd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!