title: Apache 500 Internal Server Error on my virtual host
body: <p>I have my web app projects located in a folder in /media/disk1/Projects. I want to serve them using an Apache virtualhost at <code>http://lab/</code>.</p>
  
  <p>This is how I set up my virtual host:</p>
  
  <p><strong>1. Copied /etc/apache2/sites-available/default to /etc/apache2/sites-available/lab</strong></p>
  
  <p><strong>2. Edited /etc/apache2/sites-available/lab to the following:</strong></p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerAdmin tim@localhost
  ServerName lab
  
  DocumentRoot /media/disk1/Projects
  &lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride None
  &lt;/Directory&gt;
  # &lt;Directory /var/www/&gt;
  &lt;Directory /media/disk1/Projects&gt;
      Require all granted
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p><strong>3. Added <code>127.0.0.1 lab</code> to my /etc/hosts:</strong></p>
  
  <pre><code>127.0.0.1   localhost
  127.0.0.1   lab
  </code></pre>
  
  <p><strong>4. Accessed <code>http://lab</code> only to get <code>500 Internal Server Error</code></strong></p>
  
  <p>All the subfolder permissions are set to drwxrwxrwx 
  But my <code>http://lab/phpmyadmin</code> works.</p>
  
  <p>Help me resolve. Thanks.</p>