AWS ELB and ejabbed

I have AWS EC2 instances with ejabbed servers. If I configure domain name dns points to EC2 instance ip address (A record), everything works fine. If I configure domain name dns as AWS ELB (cname), the client can not communicate with ejabbed server through AWS ELB. It seems connection closed quickly. How to resolve the issue?

Thanks

J.

Syndicate content