[Mongrel] max upload size? (was: compress and max upload size?)

Zed A. Shaw zedshaw at zedshaw.com
Sat Dec 9 05:41:40 EST 2006

On Sat, 9 Dec 2006 11:19:45 +0100
Xavier Noria <fxn at hashref.com> wrote:

> On Dec 7, 2006, at 9:54 PM, Xavier Noria wrote:
> >>    LimitRequestSize 102400
> >
> > This should read LimitRequestBody, and still looks like it does not  
> > affect to requests proxied to Mongrel. Which is the way to set the  
> > limit Apache + mod_proxy_balancer + Mongrel Cluster?
> I have not found a way within Apache, and the constants defined in  
> Mongrel

If you desperately need this then your best bet is to look how the handler in mongrel_upload_progress is written, modify it to monitor the request and abort anything over your limit, and then attach that to the front of your rails request.

Should be easy if you read the code and follow it.

Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.

More information about the Mongrel-users mailing list