title: How Create multiple site collections at root on single web application in SharePoint Server 2010(MOSS)
body: <p>I would like to create multiple site collections like <a href="http://site1.contoso.com" rel="nofollow">http://site1.contoso.com</a> , <a href="http://site2.contoso.com" rel="nofollow">http://site2.contoso.com</a> in a SharePoint 2010 web application <a href="http://portal.contoso.com" rel="nofollow">http://portal.contoso.com</a>. So i have followed the host named site collection approach suggested on 
  <a href="http://technet.microsoft.com/en-us/library/cc424952(v=office.14).aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/cc424952(v=office.14).aspx</a> </p>
  
  <p>i tried running the following command on powershell </p>
  
  <pre><code>New-SPWebApplication -Name "HNSC01" -Port 80 -HostHeader http://HNSC01.contoso.com -URL -ApplicationPool ContosoAppPool -ApplicationPoolAccount (Get-SPManagedAccount &lt;server&gt;\&lt;user&gt;) 
  </code></pre>
  
  <p>Here URL seems to be out of place and since it is parameter i tried running the command with out URL and this is not getting executed at all.</p>
  
  <p>Here are my questions. </p>
  
  <ol>
   <li>I would like to know if i am in the right direction or not?</li>
  
   <li>Is there better way of achieving the same result?</li>
  </ol>