title: Why I get a nginx 404 when I pointing a Symlink to a path?
body: <p>I want to access a directory not containing in the docroot from nginx.</p>
  
  <h2>The Situation:</h2>
  
  <p><strong>I've got a folder which contains files:</strong></p>
  
  <p><em>Command:</em></p>
  
  <pre class="lang-sh prettyprint-override"><code>ls -lah /var/www/
  </code></pre>
  
  <p><em>Output:</em></p>
  
  <pre class="lang-sh prettyprint-override"><code>drwxr-x---.  2 docker-www docker-www    6 Jul 24 16:56 some_folder
  </code></pre>
  
  <p><strong>And I've got a path which should delivers the content from the folder above:</strong></p>
  
  <p><em>Command:</em></p>
  
  <pre class="lang-sh prettyprint-override"><code>ls -lah /var/www/typo3/releases/current/typo3-web/web/info/symlink
  </code></pre>
  
  <p><em>Output:</em></p>
  
  <pre class="lang-sh prettyprint-override"><code>lrwxrwxrwx. 1 docker-www docker-www    32 Jul 24 16:56 symlink -&gt; /var/www/some_folder
  </code></pre>
  
  <p><strong>My nginx config:</strong></p>
  
  <pre><code>root /usr/share/nginx/current/typo3-web/web;
  ...
  location /info/symlink/ {
      allow all;
      autoindex on;
      disable_symlinks off;
  }
  </code></pre>
  
  <h2>Problem:</h2>
  
  <p>The nginx delivers "404 Not Found"</p>
  
  <h2>Things I've tried yet:</h2>
  
  <ul>
  <li>Create a <strong>normal</strong> folder in <em>/var/www/typo3/releases/current/typo3-web/web/info/</em> and it works. NGINX delivers the file index.</li>
  <li>Check the file permissions: the user docker-www has access to the files.</li>
  </ul>