1、Nginx

vim /etc/nginx/conf.d/www.cmdschool.org.conf

  client_max_body_size 30m; //上传文件大小改30M
  upstream www.cmdschool.org {
    server 10.168.82.25:87;
    ip_hash;
  }

  server {
    listen 80;
    server_name www.cmdschool.org;
    location / {
      proxy_pass http://www.cmdschool.org;
    }
  }

2、PHP

post_max_size = 8M #
upload_max_filesize = 2M #最大允许上传的文件大小

参考文献:

http://www.newasp.net/tech/67533.html

http://www.php100.com/html/program/nginx/2013/0905/5516.html