title: How to make a directory apache readable on ubuntu
body: <p>Following problem:</p>
  
  <p>I have an ubuntu 12.04 server I made a virtual host with </p>
  
  <pre><code>DocumentRoot /var/www/
  </code></pre>
  
  <p>Everything is fine, I see the correct index.html when I point with webrowser to the website of this virtual host.
  When I look to the owner of the <strong>www</strong> folder I see:</p>
  
  <pre><code>ls -l
  drwxr-xr-x  2 root root 4096 Jul 10 09:07 www
  </code></pre>
  
  <p>Now I change the DocumentRoot to</p>
  
  <pre><code>DocumentRoot /root/testFolder/
  </code></pre>
  
  <p>I copy my index.html in this folder, point with webrowser to my domain, then I get the message "<em>You don't have the permission...</em>"</p>
  
  <p>Ok, I check the owner of testFolder</p>
  
  <pre><code>ls -l
  drwxr-xr-x 2 root     root     4096 Jul 11 08:18 testFolder
  </code></pre>
  
  <p>It is the same as www folder.</p>
  
  <p>Ok my next try to change the group owner of testFolder</p>
  
  <pre><code>chown -R www-data:www-data /root/testFolder/
  </code></pre>
  
  <p>But I get the same result in my browser: "<em>You don't have permission to access / on this server.</em>"</p>