Multiple hosts and ejabberd_http

Hello.
I have ejabberd serving two hosts. Looks like s2s connection works for second hosts, but http service uses certificate from first hostname:

listen:
<...>
  -
    port: 5443
    ip: "::"
    module: ejabberd_http
    request_handlers:
      "": mod_http_upload
    tls: true
    certfile: "/etc/ejabberd/domain1.pem"
    dhfile: "/etc/ejabberd/dh2048.pem"

domain_certfile: "/etc/ejabberd/domain2.pem"

https://domain1:5443 works but https://domain2:5443 doesn't (it has certificate from domain1).
How do I specify certificate for domain2 to make ejabberd_http work for domain2? Do I need to add another listening port for ejabberd_http module?

I think the cert an only be

I think the cert an only be specificed per port number... so yes: you will have to set another port for the second host.

Syndicate content