On Oct 26, 11:15 am, Roboto <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm trying to stop people from uploading like 3mb images and crashing
> the server.  I think, think, that to some degree my limiters are
> working.  In my apache config I've set LimitRequestBody 307200.  That
> should be about 300k.  Now when I upload an image greater than that, I
> can see that Apache cuts it off somehow, and then I get a 404 error
> page mixed in with a 500 error for some reason.
>
> Is it working as intended?  How do I get control over what is occuring?

Are you using mod_python to host Django? If so, you may be hitting
mod_python bug described in:

  https://issues.apache.org/jira/browse/MODPYTHON-240

Although not sure why you are getting 404 unless your Apache can't
find its standard 500 error document or something and is then trying
to raise a 404 error for it.

If you are using mod_python, you might look at mod_wsgi instead as it
implements support for LimitRequestBody correctly.

Graham


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to