<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>If your site use PHP so have a look on your php.ini<br>
<br>
there are 2 param's:<br>
<br>
upload_max_filesize<br>
post_max_size<br>
<br>
<br>
</tt><br>
Am 05.02.2013 15:08, schrieb dast@c-base:
<blockquote
cite="mid:7683FB94-FFD0-46A8-9E0A-5DF67690176E@c-base.org"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">Hi,</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">i want to use Nginx with apache2 and mod_dav_svn for
hosting my SVN Repository via https.</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">But i have problems on commit large files.</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">On a 8MB ffmpeg binary commit, my SVN client brings this
error:</div>
<p style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: 13px; background-color: rgb(255, 255, 255); position:
static; z-index: auto; "><font face="courier new, monospace">Commit
failed (details follow):<br>
Server sent unexpected return value (413 Request Entity Too
Large) in response to PUT request for
'/svn/repo1/!svn/wrk/b2f0560a-<wbr>05fd-427c-9039-d47dea9ff9c4/<wbr>path/ffmpeg'</font></p>
<p style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: 13px; background-color: rgb(255, 255, 255); "><br>
The Nginx error log says:</p>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br class="webkit-block-placeholder">
</div>
<p style="color: rgb(34, 34, 34); font-family: arial, sans-serif;
font-size: 13px; background-color: rgb(255, 255, 255); "><font
face="courier new, monospace">2013/02/05 14:20:25 [error]
22931#0: *2693 client intended to send too large body: 8309431
bytes, client: 93.220.123.123, server: <a
moz-do-not-send="true" href="http://mydomain.com/"
target="_blank" style="color: rgb(17, 85, 204);">mydomain.com</a>,
request: "PUT /svn/repo1/!svn/wrk/b2f0560a-<wbr>05fd-427c-9039-ababea9ff9c4/</font><span
style="font-family: 'courier new', monospace;">pa<wbr>th</span><font
face="courier new, monospace">/ffmpeg HTTP/1.1", host: "<a
moz-do-not-send="true" href="http://mydomain.com/"
target="_blank" style="color: rgb(17, 85, 204);">mydomain.com</a>"</font></p>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br class="webkit-block-placeholder">
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">And nothing about the request in the apache logs.</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">So i think the nginx blocks the request, not the proxy
to apache.</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">The Requests to the Nginx goes over HTTPS:</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><a moz-do-not-send="true"
href="https://public-domain.com/svn/" target="_blank"
style="color: rgb(17, 85, 204);">https://public-domain.com/svn/</a> (nginx)
<> routing to <a moz-do-not-send="true"
href="http://localhost:8080/" target="_blank" style="color:
rgb(17, 85, 204);">http://localhost:8080</a> (apache2)</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">My Nginx config already has <b><font face="courier new,
monospace">client_max_body_size 256M;</font></b> in the
nginx.conf inside http { } and server { } in the vost site
config.</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">But it does not helps or is ignored.</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">i have searched all other nginx configfiles for
"client_max_body_size" without succes:</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">
<div><font face="courier new, monospace"><b>#> grep -R
'client_max_body_size' ./*</b></font></div>
<div><font face="courier new, monospace">./nginx.conf:
client_max_body_size 256M;</font></div>
<div><font face="courier new, monospace">./sites-available/<a
moz-do-not-send="true" href="http://443_mydomain.com/"
target="_blank" style="color: rgb(17, 85, 204);">443_<wbr>mydomain.com</a>:
client_max_body_size 256M;</font></div>
<div><span style="font-family: 'courier new', monospace;">./sites-available/<a
moz-do-not-send="true" href="http://443_mydomain.com/"
target="_blank" style="color: rgb(17, 85, 204);">443_<wbr>mydomain.com</a>:
client_max_body_size 256M;</span><br>
</div>
<div><font face="courier new, monospace">./sites-enabled/<a
moz-do-not-send="true" href="http://443_mydomain.com/"
target="_blank" style="color: rgb(17, 85, 204);">443_mydomain.<wbr>com</a>:
client_max_body_size 256M;</font></div>
<div><span style="font-family: 'courier new', monospace;">./sites-enabled/<a
moz-do-not-send="true" href="http://443_mydomain.com/"
target="_blank" style="color: rgb(17, 85, 204);">443_mydomain.<wbr>com</a>:
client_max_body_size 256M;</span><br>
</div>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">my site config file:</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">
<div><br>
</div>
<div><font face="courier new, monospace">server {</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>listen 443;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>server_name <a
moz-do-not-send="true" href="http://mydomain.com/"
target="_blank" style="color: rgb(17, 85, 204);">mydomain.com</a>;</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>client_max_body_size
256M;</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>ssl on;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>ssl_certificate
<span style="white-space: pre-wrap;"> </span>/path/ssl-cert/nginx/mydomain.<wbr>com.2013-01.cacert.crt;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>ssl_certificate_key
/path/ssl-cert/nginx/mydomain.<wbr>com.2013-01.key;</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>access_log
/path/logs/nginx.https.<wbr>mydomain.com.access.log;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>error_log
/path/logs/nginx.https.<wbr>mydomain.com.error.log debug;</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>root /path/htdocs/<a
moz-do-not-send="true" href="http://mydomain.com/"
target="_blank" style="color: rgb(17, 85, 204);">mydomain.com</a>;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>index index.php
index.html;</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>location / {</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>try_files $uri
$uri/ /index.php;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>}</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>location /svn {</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>client_max_body_size
256M;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>keepalive_timeout
60;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span> include
/etc/nginx/proxy_params;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span> proxy_pass
<a moz-do-not-send="true" href="http://127.0.0.1:8080/"
target="_blank" style="color: rgb(17, 85, 204);">http://127.0.0.1:8080</a>;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span> set $dest
$http_destination;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span> if
($http_destination ~ "^<a class="moz-txt-link-freetext" href="https://(.+)">https://(.+)</a>") {</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span> set $dest
<a moz-do-not-send="true" href="http://$1">http://$1</a>;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span> }</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>
proxy_set_header Destination $dest;</font></div>
<div><font face="courier new, monospace"><span
style="white-space: pre-wrap;"> </span>}</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="courier new, monospace">}</font></div>
<div><br>
</div>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">So, what can i check?</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">What is wrong in my config?</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">Why is client_max_body_size ignored?</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">Does client_max_body_size not work on https?</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">Does client_max_body_size not work on PUT requests?</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">After 2 days of testing i hav no idea that to check. :(</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); "><br>
</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">best regards,</div>
<div style="color: rgb(34, 34, 34); font-family: arial,
sans-serif; font-size: 13px; background-color: rgb(255, 255,
255); ">Daniel.</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></pre>
</blockquote>
</body>
</html>