# Client\_max\_body\_size not working?

**URL:** <https://www.ruby-forum.com/t/client-max-body-size-not-working/189508>\
**Category:** NGINX\
**Created:** [June 2, 2010, 12:44am UTC](https://www.ruby-forum.com/t/client-max-body-size-not-working/189508 "2010-06-02T00:44:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cliffwiggs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e480ec/32.png) [@cliffwiggs](https://www.ruby-forum.com/u/cliffwiggs)\
**Post date:** [June 2, 2010, 12:44am UTC](https://www.ruby-forum.com/t/client-max-body-size-not-working/189508/1 "2010-06-02T00:44:45Z")

</div>

I have:

client\_max\_body\_size 10m;

in server section of nginx.conf (also tried in http section),

but I receive:

2010/05/09 20:55:18 [error] 3361#0: \*6975 client intended to send too  
large body: 1806129 bytes, client: xx.xx.xx.xx, server: [www.xxx.com](http://www.xxx.com),  
request: “POST /administrator/index.php HTTP/1.1”, host: “xx.xx.xx.xx”,  
referrer:  
“[http://xx.xx.xx.xx/administrator/index.php?option=com\_installer](http://xx.xx.xx.xx/administrator/index.php?option=com_installer)”

Any suggestions?

# nginx -V

nginx version: nginx/0.8.33  
TLS SNI support disabled  
configure arguments: --conf-path=/etc/nginx/nginx.conf  
–error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid  
–lock-path=/var/lock/nginx.lock  
–http-log-path=/var/log/nginx/access.log  
–http-client-body-temp-path=/var/lib/nginx/body  
–http-proxy-temp-path=/var/lib/nginx/proxy  
–http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug  
–with-http\_stub\_status\_module --with-http\_flv\_module  
–with-http\_ssl\_module --with-http\_dav\_module  
–with-http\_gzip\_static\_module --with-mail --with-mail\_ssl\_module  
–with-ipv6 --with-http\_realip\_module --with-http\_geoip\_module  
–with-http\_xslt\_module --with-http\_image\_filter\_module  
–with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl  
–add-module=/build/buildd/nginx-0.8.33/modules/nginx-upstream-fair

Regards,  
Cliff

---

<div class="post-metadata">

**Author:** ![cliffwiggs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e480ec/32.png) [@cliffwiggs](https://www.ruby-forum.com/u/cliffwiggs)\
**Post date:** [June 2, 2010, 12:57am UTC](https://www.ruby-forum.com/t/client-max-body-size-not-working/189508/2 "2010-06-02T00:57:37Z")

</div>

Please ignore this. I just noticed the date on the log message. The  
error is clearly elsewhere.

Cliff

On Tue, 2010-06-01 at 15:44 -0700, Cliff W. wrote:

> request: “POST /administrator/index.php HTTP/1.1”, host: “xx.xx.xx.xx”,  
> configure arguments: --conf-path=/etc/nginx/nginx.conf  
> –with-http\_xslt\_module --with-http\_image\_filter\_module  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> [mailman.nginx.org archive](http://nginx.org/mailman/listinfo/nginx)

–
