自宅サーバーでowncloudを運用していて、ファイルのアップロード時に「request entity too large」と表示されてアップロードできないことが頻発した。
nginxのエラーログを見ると、「client intended to send too large body」と表示されており、なにやら容量的な制限を食らっている様子。
ちょっとぐぐってみると、どうやらnginxのPOSTのデフォルト値が1MBだそうです。
nginxはリバースプロキシとして利用しており、/etc/nginx/conf.d/サイトごとのconfって感じで配置しているので、各confのserver{}ディレクティブの中に、
#allow_post_size(default 1MB):add 20151217
client_max_body_size 512M;
って感じで書いて、
service nginx configtest
通ったら、
service nginx reload
してOK。
以上