Large POSTs through Apache reverse proxy to mongrel (Rails) failing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have an Apache2.0.55 server under Ubuntu, serving multiple VHosts,
with a reverse proxy that redirects a top-level directory of one of
the sites to a Rails application running mongrel. The mongrel is
started using --prefix=top_level_dir, and most of this Rails app
works fine.

One of my forms expects upload of large files (half a MB or more), and
this works fine when passed to mongrel directly, but via mod_proxy, I
get "connection reset" and 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 Heath.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux