I would like assistance with something that happens lately.
Default Nextcloud installation on my RPi 4 running DietPi v8.25.1 on Lighttpd and i have the following error in the “Security & setup warnings” tab in Nextcloud:
Your web server is not properly set up to resolve "/nextcloud/ocm-provider/". This is most likely related to a web server configuration that was not updated to deliver this folder directly. Please compare your configuration against the shipped rewrite rules in ".htaccess" for Apache or the provided one in the documentation for Nginx at it's documentation page ↗. On Nginx those are typically the lines starting with "location ~" that need an update.
Nextcloud updated fine and running Nextcloud Hub 6 (27.1.5) version.
My /var/www/nextcloud/.htaccess file regarding the ocm-provider settings are as follows:
Since 27.1.2 and 26.0.8 ocm-provider is not a dir anymore, but implemented in a usual Controller.
So before there was a folder in your nextcloud dir, but since the update the folder is removed and the feature is implemented as a controller, thus the rewrite is needed.
Probably you don’t need it if you don’t use OCM features.
We should update this config file with next DietPi update for everyone. I’ll do a commit for this.
EDIT: This should do it: v9.0 · MichaIng/DietPi@49d0886 · GitHub
I also changed the behaviour of reinstalls, to always install the new configs, and we will update them via dietpi-update whenever important changes are done from now one. There are also security-relevant changes by times, and sometimes mandatory ones, like for the newly used mjs files in Nextcloud.