找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3701|回复: 11

可道云上传提示错误 413: request entity too large 请大佬帮忙看看是为什么?

[复制链接]
发表于 2020-9-5 10:56 | 显示全部楼层 |阅读模式
按网上改size的方法,上传还是提示错误

nginx.conf的配置如下
# Please consider creating files in /etc/nginx/conf.d/ instead of editing this.
# For details see https://openwrt.org/docs/guide-user/services/webserver/nginx

worker_processes auto;

user root;

events {}

http {
        access_log off;
        log_format openwrt
                '$request_method $scheme://$host$request_uri => $status'
                ' (${body_bytes_sent}B in ${request_time}s) <- $http_referer';

        include mime.types;
        default_type application/octet-stream;
        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;
        client_max_body_size 100M;
        client_body_buffer_size 256k;
        large_client_header_buffers 200 100k;
        client_header_timeout 3600s;
        client_body_timeout 3600s;
        fastcgi_connect_timeout 3600s;
        fastcgi_send_timeout 3600s;
        fastcgi_read_timeout 3600s;

#..............................................................................
        client_body_in_file_only clean;
        client_body_temp_path /dev/shm 1 2;
        fastcgi_param  REQUEST_BODY_FILE  $request_body_file;

        gzip on;
        gzip_vary on;
        gzip_proxied any;

        root /www;

        include conf.d/*.conf;
}

php.ini配置如下
[PHP]
zend.ze1_compatibility_mode = Off
engine = On
precision    =  12
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 100

open_basedir = /mnt/sdb1/:/tmp/:/proc/
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 800M
error_reporting  =  E_ALL & ~E_NOTICE & ~E_STRICT

display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off

variables_order = "EGPCS"
request_order = "GP"
register_globals = Off
register_long_arrays = Off
register_argc_argv = On
auto_globals_jit = On
post_max_size = 100M
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"

;doc_root = "/www"
user_dir =
extension_dir = "/usr/lib/php"
enable_dl = On
cgi.fix_pathinfo=1
- /etc/php.ini 1/56 1%


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2020-9-5 11:00 | 显示全部楼层
client_max_body_size

点评

这一项设置过了,100M,仍然不行  详情 回复 发表于 2020-9-5 11:11
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-9-5 11:11 | 显示全部楼层
3mile 发表于 2020-9-5 11:00
client_max_body_size

这一项设置过了,100M,仍然不行
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-9-5 11:36 | 显示全部楼层
另外max_execution_time = 30
max_input_time = 60这两项更改成3600之后,重启路由就会恢复到默认值,是为什么呢?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-9-5 17:45 | 显示全部楼层
dddddddddd
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-9-5 22:48 | 显示全部楼层
顶顶顶顶顶顶顶顶顶顶顶顶
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-9-6 09:45 | 显示全部楼层
顶顶顶顶顶顶顶顶顶顶顶顶顶
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-9-6 12:56 | 显示全部楼层
顶顶顶顶顶顶顶顶顶顶顶顶顶
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2020-9-6 17:44 | 显示全部楼层
顶顶顶顶顶顶顶顶顶顶顶顶顶
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-9-8 16:57 | 显示全部楼层
可样的问题,只在上传大文件时会出现。小文件不会出现这情况。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-9-14 22:46 | 显示全部楼层
同样的问题,重启服务的时候
max_execution_time = 30
max_input_time = 60
这个时间没法修改
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-12-19 11:33 | 显示全部楼层
你没有找对文件,不是修改nginx.conf
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 01:57

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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