title: Directory Alias directory outside DocumentRoot
body: <p>I have to redirect a route from my main apache server to a directory outside DocumentRoot but always it returns a forbidden error.</p>
  
  <blockquote>
    <p>Forbidden</p>
    
    <p>You don't have permission to access /test on this server.</p>
  </blockquote>
  
  <p>This is my 000-default.conf</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          ServerAdmin webmaster@localhost
          DocumentRoot /var/www/html
  
          Alias /test "/home/myuser/url.es/my-form/test"
          &lt;Directory /home/myuser/url.es/my-form/test&gt;
                  Options FollowSymLinks
                  AllowOverride None
                  Require all granted
          &lt;/Directory&gt;
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>To test that directory permissions is not the issue, I have granted 777:</p>
  
  <pre><code>drwxrwxrwx  6 root  root  4096 Feb  5 18:59 test
  </code></pre>
  
  <p>and inside:</p>
  
  <pre><code>drwxrwxrwx 2 root  root  4096 Feb  4 19:07 api
  drwxrwxrwx 2 root  root  4096 Feb  4 19:07 assets
  -rwxrwxrwx 1 root  root   585 Feb  4 19:07 crossdomain.xml
  drwxrwxrwx 4 root  root  4096 Feb  4 19:07 img
  -rwxrwxrwx 1 root  root  1818 Feb  4 19:07 index.html
  -rwxrwxrwx 1 root  root    51 Feb  4 19:07 robots.txt
  </code></pre>