title: Linux Apache config - You don't have permission to access / on this server?
body: <p>How can I tell Apache to point <code>127.0.0.1</code> to a specific folder like <code>/var/www/projects/mysite1/</code>?</p>
  
  <p>I use <code>sudo gedit /etc/apache2/apache2.conf</code> and this is the config I have:</p>
  
  <pre><code>&lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride all
      Require all denied
  &lt;/Directory&gt;
  
  &lt;Directory /usr/share&gt;
      AllowOverride None
      Require all granted
  &lt;/Directory&gt;
  
  &lt;Directory /var/www/&gt;
      Options Indexes FollowSymLinks
      AllowOverride All
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>So if I change <code>/var/www/</code> to <code>/var/www/projects/mysite1/</code> and I tried to access <code>http://127.0.0.1/</code> on my browser after restarting the server, I get this error:</p>
  
  <blockquote>
    <p>Forbidden</p>
    
    <p>You don't have permission to access / on this server.</p>
    
    <p>Apache/2.4.7 (Ubuntu) Server at 127.0.0.1 Port 80</p>
  </blockquote>
  
  <p>Any ideas what should I do?</p>