title: Apache: Virtual Host configuration
body: <p>As i tried to configure my virtual host in apache. I put something like this,</p>
  
  <pre><code>NameVirtualHost *:80
  
  &lt;VirtualHost *:80&gt;
     DocumentRoot /xampp/htdocs/gift
     ServerName gift.loc  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>And in my hosts file i put something like this,</p>
  
  <pre><code>127.0.0.1       localhost
  127.0.0.1       gift.loc
  </code></pre>
  
  <p>And i run it on the browser,</p>
  
  <pre><code>http://gift.loc - is fine
  </code></pre>
  
  <p>But when i tried using this,</p>
  
  <pre><code>http://localhost/othersite - can't found
  </code></pre>
  
  <p>Do i missed somehting to configure? ANy ideas...</p>
  
  <p>Thanks in advance,</p>