Welcome! Log In Create A New Profile

Advanced

Re: WebDAV with Authentication Layer

Nima Mohammadi
August 19, 2014 05:56PM
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 _______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

WebDAV with Authentication Layer

Nima Mohammadi August 17, 2014 06:22PM

Re: WebDAV with Authentication Layer

Nima Mohammadi August 19, 2014 05:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 328
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready