[FIX] add host name instead of domain name in templates