[FIXED] Htaccess file is not working

Hello, Fresh install of NC 10 latest on Debian 8.6 following the install manual and getting this error that I have never seen before. Did anyone fix this in the past.

“Your data directory and your files are probably accessible from the Internet. The .htaccess file is not working. We strongly suggest that you configure your web server in a way that the data directory is no longer accessible or you move the data directory outside the web server document root.”

I tried to create a text file in the data folder and can indeed access it via web so looks like there is a security issue.

please let me know if I can provide any more information

To make everything in your .htaccess work, you need to set “AllowOverride All” for your nextcloud-directory:
https://docs.nextcloud.com/server/10/admin_manual/installation/source_installation.html?highlight=apache#apache-web-server-configuration

fixed the issue: