Limit a form post size with Apache / Django – clarification

apache-2.2djangomod-wsgi

There is already an answered question on this topic:

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 that directive Apache-wide, or should it be used on some specific folder?

Best Answer

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.