Why apache throwing forbidden when directory is in home?
<p>Apache simply unable to access directory (forbidden 403 error), unable to identify the reason why ?</p>

<p>I have made a vhost as:</p>

<p>created: /etc/apache2/sites-available/dev.testvhost.com.conf</p>

<pre><code>&lt;VirtualHost *:80&gt;
    DocumentRoot /home/najam/projects/php/testvhost
    ServerName dev.testvhost.com
&lt;/VirtualHost&gt;
</code></pre>

<p>added servername in /etc/hosts</p>

<pre><code>127.0.0.1       dev.testvhost.com
</code></pre>

<p>executed command: </p>

<pre><code>sudo a2ensite dev.testvhost.com.conf
</code></pre>

<p>then:</p>

<pre><code>sudo service apache2 restart 
</code></pre>

<p>pointing browser to <a href="http://dev.testvhost.com" rel="noreferrer">http://dev.testvhost.com</a> gives 403 forbidden error, while error log shows following on each refresh.</p>

<blockquote>
  <p>[Wed Jul 13 16:19:42.277573 2016] [authz_core:error] [pid 20067]
  [client 127.0.0.1:58230] AH01630: client denied by server
  configuration: /home/najam/projects/php/testvhost/</p>
</blockquote>

<p>I am very sure about the issue causing error because "testvhost" folder is in home directory "/home/najam/projects/php/testvhost" and when I  move the folder to /var/www/ it starts working (no forbidden error) (after modify documentroot path accordingly in dev.testvhost.com.conf)</p>