Multiple client_max_body_size (location based)

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


Hello,

Is it possible to have multiple client_max_body_size per location 
directives?

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;
     }
}

Thanks!





More information about the nginx mailing list