equip webserver with subdomain logic