Conditionally set client_max_body_size Nginx as of version 1.9.4 does not support variable client_max_body_size.