title: Virtual host on ubuntu 13.10 and apache 2.4.6
body: <p>I have the following problem<br/>
   My hosts file is as follows:</p>
  
  <pre><code>127.0.0.1       localhost
  127.0.1.1       barbala4o-HP-ProBook-4530s
  127.0.1.1       mysite.localhost
  </code></pre>
  
  <p>My file in the <code>/etc/apache2/sites-available/mysite.localhost.conf</code> is as follows : </p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          ServerAdmin webmaster@localhost
          ServerName mysite.localhost
  
          DocumentRoot /var/www/mysite
  
          &lt;Directory /var/www/mysite/&gt;
                  Options Indexes FollowSymLinks
                  AllowOverride All
                  Require all granted
          &lt;/Directory&gt;
          ErrorLog /var/log/apache2/mysite-error.log
          CustomLog /var/log/apache2/mysite-access.log common
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>After do <code>sudo a2ensite mysite.localhost.conf</code> and restart apache on mysite.localhost/ and only on localhost i get the following (like listing a directory without index file in it): </p>
  
  <pre><code>Index of /
  
  [ICO]   Name    Last modified   Size    Description
  [DIR]   apache_logs/    2013-09-24 10:15     -   
  [DIR]   mysql/  2013-10-22 10:05     -   
  [DIR]   tools/  2013-10-22 10:05
  </code></pre>
  
  <p>And on any other folder in the <code>/var/www/</code> directory like test when i enter <code>localhost/test</code> instead of loading the <code>index.php</code> file it shows: </p>
  
  <pre><code>Not Found
  
  The requested URL /adlantic was not found on this server.
  
  Apache/2.4.6 (Ubuntu) Server at localhost Port 80   
  </code></pre>
  
  <p>If I do <code>sudo a2dissite mysite.conf</code> and restart apache everything is loading ok. I guess the problem is somewhere in the <code>mysite.localhost.conf</code> but I can't find where. Any ideas? 10x</p>