This was causing only the mod_muc module to be enabled for kosmos.org See the Virtual Hosting section of the docs https://docs.ejabberd.im/admin/configuration/
kosmos-ejabberd
Sets up ejabberd with vhosts for kosmos.org (public server) and 5apps.com (private server).