title: developing web app with subdomains
body: <p>my application will have a subdomain per customer to show their logo and some other stuff:</p>
  
  <pre><code>company1.service.com
  company2.service.com
  </code></pre>
  
  <p>I'm trying to see what's the best way to work during development:</p>
  
  <ol>
  <li>configure the development machine HOST file to do some mapping, so I can access company1.localhost etc.</li>
  <li>Use some kind of secret config flag which the app will check to determine what is the overriden domain</li>
  <li>Do not use subdomains at all (even on production) and prefer query string</li>
  </ol>
  
  <p>I think #1 should be ok for me just trying to see if anyone has bad experience with it or good with the other options.</p>