Hi @all, i'm glad to find this forum! And i hope you guys can help me? I wanted to change these lines in the .vhost config: Code: location ~ /\. { deny all; } to that: Code: location ~ /\.(?!file).* { deny all; } So that the Nextcloud is able to create and move the chunk files. Here comes the tricky part i only want to change that on one domain, the othter domains should use the default template. Is it possible to set this in the custom-conf directory? I've created a custom conf in the directory: Code: /usr/local/ispconfig/server/conf-custom/nginx_nextcloud_vhost.conf.master But now i don't know how to get this as default template for one of my subdomains. Do you have a idea how to get this running? Thanks and regards, piccolo
Try to add this in the nginx directives field of the website: Code: location ~ /\. { ##delete## } location ~ /\.(?!file).* { deny all; } and remove that custom conf file that you created.
Hi till, thanks for your fast reply. I did the changes as you said to the directive field and it changed the config to this: Code: location ~ /\. { } [... some other lines here...] location ~ /\.(?!file).* { deny all; } But the nextcloud is showing the error again, if i change the original line the error disappears. Maybe there is a Problem in my config. I've created this as a directive snippet or should i paste this in the directives of the domain? Thanks and regards, piccolo
Paste it to the nginx directives field of the website, and the ##delete## is an important part, do not remove that. See page 160 of the ISPConfig manual.
Hi till, thanks the section is now gone and there is just the one section i need: Code: location ~ /\.(?!file).* { deny all; } But i still get the following error: Code: [error] 21785#0: *54 access forbidden by rule, client: *client ip*, server: *domain.tld*, request: "MOVE /remote.php/dav/uploads/<user>/1624551459/.file HTTP/1.1", host: "*domain.tld*" Is there something else i can check? It seems that nginx is now allowing to access the .file Thanks and regards, piccolo [EDIT]: I uploaded the config file generated by ISPConfig - I removed the sensitive data.
Are you referring to this solution? https://github.com/nextcloud/documentation/pull/1748/files Because it also says: See `issue #8802 on nextcloud/server <https://github.com/nextcloud/server/issues/8802>` for more information. I checked in there and found another solution which says: Do try that.
Thanks to till and ahrasis! @till : your suggestion with the ##delete## line was gold! - This removed the location line in the config that was created by the template. @ahrasis : thanks to your post i reviewed my config again and found, that the lines Code: location ~ /\.(?!well-known) { deny all; } AND!: Code: location ~ /\.(?!file).* { deny all; } were in the vhost config file! I removed my config and only have this one in the nginx config: Code: location ~ /\.(?!well-known)(?!file) { deny all; } Thanks to you all guys, you are great! - It works!
This snippet is working for Nextcloud 21.0.3 too Code: allow all; log_not_found off; access_log off; } # ............. code starts here ........... location ~ /\. { ##delete## } location ~ /\.(?!well-known)(?!file) { deny all; } # .......... code ends here .............. location ~ \.php$ { docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html