use val for subdomain in template