Z
Z
zdravnik2015-06-10 13:00:04
linux
zdravnik, 2015-06-10 13:00:04

Problem with webdav connection on windows 2012?

Good afternoon!
I set up a webdav server on centos using nginx with an extended dav module https://github.com/arut/nginx-dav-ext-module.
The nginx config is the following:

server {
                 listen 80;
                server_name x.x.x.x.;
                access_log /var/log/nginx/webdav_access.log main;

                 location / {
                        autoindex on;
                        root /davdir;
                        client_max_body_size 0;
                        client_body_temp_path /temp_davdir 1 2;
                        dav_methods PUT MKCOL COPY MOVE DELETE;
                        dav_ext_methods PROPFIND OPTIONS;
                        create_full_put_path on;
                        charset utf-8;
                        dav_access user:rw group:rw all:rw;

                }
         }

Successfully mounted giving a directory on a different server with centos command:
mount -t davfs xxxx /mnt/davdir/ -o rw
Everything works without problems.
In addition, it became necessary to use the dav directory on windows 2012 r2. Mapped the dav directory to a network drive. The files on the disk are visible and can be downloaded. But I can't put the file from Windows into the da directory. When I copy from Windows to giving a directory a file, I get a message that such a file already exists (and so with any files). In this case, if you click "copy with replacement", then Windows thinks for a very long time, and then issues "File names are too long to be placed in this target folder. Try using a shorter file name or location with a shorter path."
At the same time, the following messages lie in the nginx log
Microsoft-WebDAV-MiniRedir/6.3. 9600" "-" 0.000 "-" NGINX-CACHE-- "-" - [10/Jul/2015:18:43:27 +0300] "PROPFIND /new.txt HTTP/1.1" 207 "-" 254 "- " "Microsoft-WebDAV-MiniRedi
r/6.3.9600" "-" 0.000 "-" NGINX-CACHE-- "-"
- [10/Jul/2015:18:43:27 +0300] "PROPFIND /new.txt HTTP/1.1" 207 "- " 254 "-" "Microsoft-WebDAV-MiniRedi
r/6.3.9600" "-" 0.000 "-" NGINX-CACHE-- "-"
- [10/Jul/2015:18:43:27 +0300] "PROPFIND /new.txt HTTP/1.1" 207 "-" 254 "-" "Microsoft-WebDAV-MiniRedi
r/6.3.9600" "-" 0.000 "-" NGINX-CACHE-- "-"
- [10/Jul/2015 :18:43:27 +0300] "PROPFIND /new.txt HTTP/1.1" 207 "-" 254 "-" "Microsoft-WebDAV-MiniRedi
r/6.3.9600" "-" 0.000 "-" NGINX-CACHE- - "-"
- [10/Jul/2015:18:43:32 +0300] "PROPFIND /new%20(2).txt HTTP/1.1" 207 "-" 260 "-" "Microsoft-WebDAV-Mi
niRedir/6.3.9600" "-" 0.000 "-" NGINX-CACHE-- "-"
Such messages roll around with terrible force, only the number in brackets (2) changes to the next in order up to 10001. The
question is how to make the dav directory work correctly on Windows?
UPD: If you try to upload a file from under Windows using the total commander (using the webdav plugin), then I get "an error while uploading the file", and the following in the logs:
upload [11/Jul/2015:15:32:40 +0300] " PROPFIND / HTTP/1.1" 207 "-" 1524 "-" "ezdavplugin/2.6 TotalCommander/8.5 (Windows/8; en_EN)" "-" 0.000 "-" NGINX-CACHE-- "-"
upload [11/Jul/ 2015:15:32:40 +0300] "PUT /try.txt HTTP/1.1" 500 "text/html; charset=utf-8" 186 "-" "ezdavplugin/2.6 TotalCommander/8.5 (Windows/8; en_EN) " "-" 0.
upload [11/Jul/2015:15:32:41 +0300] "PROPFIND / HTTP/1.1" 207 "-" 1524 "-" "ezdavplugin/2.6 TotalCommander/8.5 (Windows/8; en_EN)" "-" 0.000 "-" NGINX-CACHE-- "-"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zdravnik, 2015-06-11
@zdravnik

More details: Start->right-click on "My Computer"-> connect a network drive-> entered the address of the dav server "\\ip_adrress_dav_server\" -> Done. In total, giving the disk appeared in my computer in the same place as the local drives C and D.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question