How to limit max file size for upload in nginx for special location with fastcgi -


i want limit max file size upload server 501kb location /account/personal_info/documents/ , 50k other url of site security (ddos, etc) made config text below, second max_body_size in location /account/personal_info/documents/ not work @ all. how should that?

 location / {     include fastcgi_params;     fastcgi_pass unix:/var/run/www/mysite.sock;     client_max_body_size 50k;  }   location /account/personal_info/documents/ {     client_max_body_size 501k;     fastcgi_pass unix:/var/run/www/mysite.sock;     fastcgi_param   path_info /account/personal_info/documents/;  } 

is uri , http(s)://example.com/account/personal_info/documents/ in browser? if so, more specific in configuration make sure nginx applies correct location block.

location = /account/personal_info/documents/ {     # ... } 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -