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
12 | post_max_size = 8M # upload_max_filesize = 2M #最大允许上传的文件大小 |