Multiple client_max_body_size (location based)

Juan Fco. Giordana juangiordana at
Tue Jan 13 13:07:02 MSK 2009


Is it possible to have multiple client_max_body_size per location 

I've tried this and doesn't seem to work, but the docs says that it is 
possible to have client_max_body_size in a location context.

I'm using nginx-0.6.34.

server {
     client_max_body_size 1m;

     location = upload-image.php {
         client_max_body_size 3m;

     location = upload-file.php {
         client_max_body_size 10m;


More information about the nginx mailing list