# Large POSTs through Apache mod\_proxy to mongrel failing

**URL:** <https://www.ruby-forum.com/t/large-posts-through-apache-mod-proxy-to-mongrel-failing/113428>\
**Category:** Rails\
**Created:** [August 31, 2007, 12:07am UTC](https://www.ruby-forum.com/t/large-posts-through-apache-mod-proxy-to-mongrel-failing/113428 "2007-08-31T00:07:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clifford\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/49beb7/32.png) [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Post date:** [August 31, 2007, 12:07am UTC](https://www.ruby-forum.com/t/large-posts-through-apache-mod-proxy-to-mongrel-failing/113428/1 "2007-08-31T00:07:00Z")

</div>

I have an Apache2 server working nicely with mod\_proxy pointing at  
mongrel that’s started using --prefix. One of my forms allows file  
upload, with the expectation of large files. When I upload a file of  
370KB (from Firefox on Mac OS/X), Apache is returning a connection  
reset error and dropping this in error.log:

Connection reset by peer: proxy: prefetch request body failed to  
localhost from AAA.BBB.CCC.DDD

I checked the Apache source code, and there seems to be a 16384 byte  
buffer which it uses to try to prefetch the POST body so it can send  
Content-Length. After googling a bit, I tried setting some Apache2  
special environment variables that promised to modify the behaviors:

SetEnv downgrade-1.0  
SetEnv proxy-sendcl  
SetEnv proxy-sendchunked

I tried these one at a time… still get the error.

What am I doing wrong?

Clifford H…

---

<div class="post-metadata">

**Author:** ![Clifford\_H](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/49beb7/32.png) [@Clifford\_H](https://www.ruby-forum.com/u/Clifford_H)\
**Post date:** [September 1, 2007, 9:15am UTC](https://www.ruby-forum.com/t/large-posts-through-apache-mod-proxy-to-mongrel-failing/113428/2 "2007-09-01T09:15:19Z")

</div>

Does no-one have an answer for this?  
Surely other people are uploading large files through Apache mod\_proxy?  
Can you share anything that looks relevant about your Apache config  
please? I’m really stuck here…
