F
F
Fordimm2019-04-09 18:04:15
Nginx
Fordimm, 2019-04-09 18:04:15

How to beat WebDav?

I built WebDav on Linux, the web server used Nginx, but I can’t overcome the problem, more precisely 2.
1) when copying a file via VinSCP to Dove, I immediately get a message that the file already exists and should I overwrite it? Although the folder is empty. I agree to re-record and everything goes through without problems.
2) if I connect the Dove folder as a network drive, then when I copy the file to Dove, I get the same error that the file already exists and also - The name for the folder being created is too long.
Maybe someone faced such a problem?
Nginx
server config {
listen 80;
server_name wdav.---.ru;
return 301 https://wdav.---.ru$request_uri;
}
server {
listen 443 ssl spdy;
server_name wdav.---.ru;
resolver 8.8.8.8;
# file size and temp.
client_max_body_size 50g;
client_body_temp_path /tmp;
# directory
root /var/www/wdav.---.ru;
# chmod
dav_access user:rw group:rw all:rw;
# webdav methods.
dav_methods PUT DELETE MKCOL COPY MOVE;
# path when uploading files
create_full_put_path on;
dav_ext_methods PROPFIND OPTIONS;
#autoindex.
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
charset utf-8;
# authorization in /upload:
auth_basic "Upload directory";
auth_basic_user_file /etc/nginx/htpasswd;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question