title: How to create a site instance per subdomain
body: <p>I would like to create a web platform where each customer get its own site like <a href="https://www.uservoice.com/" rel="nofollow">uservoice.com</a></p>
  
  <p><strong>Example:</strong></p>
  
  <ul>
  <li>Main website : uservoice.com </li>
  <li>Customer 1: <em>cust1-subdomain</em>.uservoice.com</li>
  <li>Customer 2 : <em>cust2-subdomain</em>.uservoice.com</li>
  </ul>
  
  <p>The objective is that the customer can enter its site via its own url &amp; login page.</p>
  
  <p>Does anyone know how to do that? How to avoid a sub-directory by subdomain and copy all the files? I am looking for a clean and scalable solution.</p>