Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

There is already an answered question on this topic:

http://serverfault.com/questions/76535/limit-a-form-post-size-with-apache-django

but I'm not sure what this means: "If, for example, you are permitting file upload to a particular location" (source: http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestbody) - which location I'm uploading a file to, when doing that under Django (WSGI)? Is this directive Apache-wide, or it should be used on some specific folder?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Depends on where you put the directive.

Use a Location directive to constraint it to a specific URL.

<Location /some/suburl>
LimitRequestBody 102400
</Location>

If you stick it at VirtualHost level, then applies to all URLs.

share|improve this answer
    
Great, perfect answer, thanks! –  Tomasz Zieliński Aug 23 '10 at 8:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.