In /etc/nginx/sites-available
location ~ \.php$ {
When i used to publish WordPress site on VPS server. In the WordPress Back end Limit to 2MB uploading. After checking several methods, above option was success.
server {
client_max_body_size 128m;
}
location ~ \.php$ {
fastcgi_param PHP_VALUE "upload_max_filesize=128M \n post_max_size=128M";
}
No comments:
Post a Comment