六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 971|回复: 0

discuz上传附件过大提示Server (IO) Error的解决方法

[复制链接]
 楼主| 发表于 2014-11-13 15:06:27 | 显示全部楼层 |阅读模式
今天遇到这个问题,我的服务器是 nginx+apache,php.ini里,已经设置了


memory_limit 为200M,post_max_size = 150M,upload_max_filesize = 100M,max_execution_time为600秒,但是上传了一个10来M的压缩包仍然提示Server (IO) Error。后来在这个站点对应的nginx.conf文件中,增加了一行client_max_body_size 100m;,如下:





server {
listen 80;
server_name xxx.com www.xxx.com ;
root /www/web/y/xxx/public_html;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
client_max_body_size 100m;
}
location / {
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}

该会员没有填写今日想说内容.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表