百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>Discuz教程> discuz上传附件过大提示Server (IO) Error的解决方法
分享文章到:

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

发布时间:12/03 来源: 浏览: 关键词:
今天遇到这个问题,我的服务器是 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://www.baidow.com:88;
                include naproxy.conf;
                client_max_body_size 100m;
        }
        location / {
                try_files $uri @apache;
        }
        location @apache {
                 proxy_pass http://www.baidow.com:88;
                 include naproxy.conf;
        }
}    

问题解决。

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有7人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板