Closed taybin closed 12 years ago
What this line does is to make sure that the host specified in the HTTP request are one of the configured virtual hosts of ejabberd. That means if foo.com is running on bar.com, ejabberd_config:get_global_option(hosts) will return a list including "foo.com".
I'll take another look at the traffic to make sure the Host header was being sent correctly. Thank you.
Yes, it was a bad REST client that was changing the Host header out from under us.
Great to hear the problem was solved.
in mod_restful:handle_request/3, Host is compared to:
However, shouldn't the hostname be ignored in favor of the Host header?
I can easily see having the xmpp domain foo.com running on a server bar.com. And then trying to access: