Handle subdomains on localhost