setting up subdomains handling in the server