• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Nexcloud, webdav, upload error for a specific file

Bruno21

New Pleskian
Hello,
I've a crazy problem with NextCloud (installed using Plesk's extension) and WebDAV.
I can't upload a simple 2 ko file specifically named 'readme.txt'
Got this error:

2020-09-20 11:13:49Error86.235.xx.yy403PUT /nextcloud/remote.php/webdav/readme.txt HTTP/2.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:80.0) Gecko/20100101 Firefox/80.0
146Accès SSL/TLS Nginx

Rename the file to 'readme 2.txt' and I can upload it successful.

2020-09-20 11:10:30Access86.235.xx.yy200GET /nextcloud/remote.php/dav/files/bruno/readme 2.txt HTTP/1.0
Mozilla/5.0 (Macintosh) mirall/3.0.1git (build 3355) (Nextcloud)
1.86 KAccès SSL/TLS Apache
2020-09-20 11:10:31Access86.235.xx.yy207PROPFIND /nextcloud/remote.php/dav/files/bruno/ HTTP/1.0
Mozilla/5.0 (Macintosh) mirall/3.0.1git (build 3355) (Nextcloud)
1.20 KAccès SSL/TLS Apache

No problem for all other files.

I accept all suggestions before I go crazy ;-)

VersionPlesk Obsidian v18.0.30_build1800200914.12 os_Ubuntu 18.04
OSUbuntu 18.04.5 LTS
Nextcloud19.0.3
 
I found

NGINX:
        location ~* "(?:wp-config\.bak|\.wp-config\.php\.swp|(?:readme|license|changelog|-config|-sample)\.(?:php|md|txt|htm|html))" {
                return 403;
        }

in /var/www/vhosts/system/domain.fr/conf/nginx.conf

How to exclude *readme* from this rule ?
 
I think that you need to change the Nginx settings for static file proxying. Instead of choosing the automatic proxying of static files, choose the manual proxying and omit the .txt ending in the list for files that Nginx shall handle and not pass on to Apache. This can be done in the Apache & Nginx webserver settings (icon) on the websites & domains page.
 
Back
Top