title: Nginx reverse proxy disable listing directories - autoindex
body: <p>I have a reverse nginx proxy</p>
  <pre><code>   location / {
           autoindex off;
           proxy_set_header HOST $host;
           proxy_set_header X-Forwarded-Proto $scheme;
           proxy_set_header X-Real-IP $remote_addr;
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
           proxy_pass http://owncloud/;
      }
  </code></pre>
  <p>Now I want to prevent that users can go to <a href="https://url.tld/data" rel="nofollow noreferrer">https://url.tld/data</a> and view the folder content... autoindex off; is not working.</p>
  <p>I want to achieve this without changing the (owncloud) .htaccess because it's inside a docker container.</p>
  <p>In which way is this possible?</p>