WebDAV with Authentication Layer

Nima Mohammadi nima.mohammadi at ut.ac.ir
Tue Aug 19 21:55:47 UTC 2014


 

I've figured out the solution to my problem. I checked the error log of
nginx and saw the error below:

2014/08/20 01:55:06 [error] 3180#0: *1 client intended to send too large
body: 10573964 bytes, client: 172.16.2.1, server: , request: "PUT
/disks/pishte/music.mp3 HTTP/1.1", subrequest: "/auth_webservice", host:
"172.16.2.128:8080"
2014/08/20 01:55:06 [error] 3180#0: *1 auth request unexpected status:
413, client: 172.16.2.1, server: , request: "PUT /disks/pishte/music.mp3
HTTP/1.1", host: "172.16.2.128:8080"

But there has already been a client_max_body_size directive in the
location{} block. Also auth_basic with a htpasswd file worked fine with
large files. So I moved the client_max_body_size directive to the
server{} block, and voila! It works now! 

-- Nima Mohammadi 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140820/698d3671/attachment.html>


More information about the nginx mailing list