In the question Working with subdomain in google app engine, the following code was suggested.
applications = {
'product.example.com': webapp.WSGIApplication([
('/', IndexHandler),
('/(.*)', ProductHandler)]),
'user.example.com': webapp.WSGIApplication([
('/', IndexHandler),
('/(.*)', UserHandler)]),
}
def main():
run_wsgi_app(applications[os.environ['HTTP_HOST']])
if __name__ == '__main__':
main()
My question is how do I test this locally? When I'm testing it locally, the host is "localhost:8080" and not any of the domains.