Added custom subdomain support