client_max_body_size for a location {} ? Possible?

Maxim Dounin mdounin at
Tue Jun 5 18:40:55 UTC 2012


On Tue, Jun 05, 2012 at 05:31:25PM +0000, Joseph Cabezas wrote:

> Answering myself partially
>    location /wordpress/wp-admin { client_max_body_size 1m;  }   <-- does that apply for evert sub directory  such as /wordpress/wp-admin/dir1 /wordpress/wp-admin/dir2/app.php etc

See here for details explanation on how locations work:

And here for an answer to your original question:

The "context" in the directive description gives a list of places 
where the directive is allowed.

Maxim Dounin

More information about the nginx mailing list