<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Tahoma,Arial,Helvetica,sans-serif'>
<p>I've figured out the solution to my problem. I checked the error log of nginx and saw the error below:<br /><br />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"<br />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"<br /><br />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!</p>
<p>-- Nima Mohammadi</p>
</body></html>