Just now did a fresh install of Nextcloud on a new VM. I installed CentOS, Apache, PHP and MariaDB, and after that Nextcloud through the browser via setup-nextcloud.php.
Nothing has been done to or with this Nextcloud installation. It’s completely fresh and about two minutes old now.
I noticed that when in a browser I go to my https://nextcloud.domain.tld/apps/files/ or even https://nextcloud.domain.tld/apps (omitting index.php), I am presented with a web server directory listing…
How is this possible? I don’t suppose this is intended.
I checked /var/www/html/.htaccess, and in there it does say Options -Indexes, which I believe should prevent directory listings.
What am I missing? What did I do wrong?
(For the record… When I leave index.php in place, the default Nextcloud interface is shown and all seems to work like it should.)
Nextcloud version: 18.0.1
Operating system and version: CentOS 7.7.1908
Apache or nginx version: Apache 2.4.6
PHP version: 7.3.15