title: How to create a virtual host in ubuntu 13.10
body: <p>I am using ubuntu 13.10 OS and LAMP, Apache 2.4.</p>
  
  <p>I would like to create a virtual host on apache. I tried some code, but it didn't work. </p>
  
  <p>The following modifications are made. but it's not working.</p>
  
  <p>First I changed <code>HostnameLookups off</code> to <code>HostnameLookups on</code> on <code>etc\apache2\apache2.conf</code> file. Then I added the below code,</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerName local.scholarships.theiet.in
  DocumentRoot /home/www/my_project/public_html
  &lt;Directory path_to_code_base/public&gt;
      Options -Indexes
      Require all granted
      DirectoryIndex index.php
      AllowOverride All
  &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>After restart apache I ran <code>http://localhost/</code> . The site is not loaded.</p>
  
  <p>How can I load my site when running <code>http://localhost/</code> </p>