Htaccess problem after migrating from ownCloud

Hello Nextcloud community! I’ve been running ownCloud for a couple of months on different machines (currently a RasPi 3) and decided to migrate to Nextcloud yesterday. I thought it would be best to just start from scratch and I removed everything related to OC (MariaDB table, folder from var/www). And since I had a completely operational OC server with HTTPS and all, I just copied the apache conf file from OC and just changed the DocumentRoot to the new Nextcloud folder in /var/www.

Now, I’m up and running but the admin page states:“Your data directory and your files are probably accessible from the Internet…” and the files are indeed browsable by anyone who points their browser to a file on the data folder. I believe that this is a problem with the .htaccess file but I have no idea how to go about fixing this. Anyone care to chime in?

Nevermind, got it working!

I just had to add

<Directory /var/www/nextcloud>
         AllowOverride All

to the apache config file for nextcloud :wink: