title: Working with subdomain in google app engine
body: <p>How can I work with sub domain in google app engine (python).</p>
  
  <p>I wanna get first domain part and take some action (handler).</p>
  
  <p><b>Example:</b><br />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;product.example.com  -> send it to products handler<br />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;user.example.com     -> send it to users handler</p>
  
  <p>Actually, using virtual path I have this code:</p>
  
  <pre><code>  application = webapp.WSGIApplication(
      [('/', IndexHandler),
       ('/product/(.*)', ProductHandler),
       ('/user/(.*)', UserHandler)
    ]
  </code></pre>