change settings based on subdomain pattern