Some code changes would be good; HOST means host here, but places in the code it's used to mean protocol+host.

And yes, on the central server, we have
domain=adhocsync.com
host=kalite.adhocsync.com