configures subdomain handling