AIO and custom DATADIR: Your data directory and files are probably accessible from the internet

I’m using Nextcloud AIO 29.0.3 via docker container on ubuntu server 24.04, and I’m getting an error “Your data directory and files are probably accessible from the internet. The .htaccess file is not working. It is strongly recommended that you configure your web server so that the data directory is no longer accessible, or move the data directory outside the web server document root.” in my overview tab.

My NEXTCLOUD_DATADIR is located in “/home/user/nextcloud/data” (my storage drive is mounted on Home). The ls -l output for the directory is “drwxr-x— www-data root”.

As far as I understand, my data directory is not in the web server document root. What does this mean in that case and how can I fix it? Everything seems to be working fine.
How are my files accessible from the Internet? Should I be worried?

If this matters, my access to the instance is Cloudflare proxy → nginx → Nextcloud AIO Docker

Problem solved:

Needed to put https redirect back into my nginx config. I thought by dropping http completely this block would not be needed, but somehow it is still necessary

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.