oa上传文件不能超过1M

从11月1日起,以域名在处于公网的办公电脑、oa服务器上通过ie、猎豹浏览器、火狐浏览器登录oa,写邮件时添加大于1024k的附件并上传该附件时,或在个人文件夹上传在大于1024k的文件时,出现错误,提示:413 Request Entity Too Large --nginx/1.6.2。
在处于内网办公电脑上以oa服务器的内网地址的方式登录oa,则无上述问题。在oa服务器上通过localhost登录oa,也无上述问题。
打开nginx主配置文件nginx.conf,http段内容如下:

http {
include mime.types;
default_type application/octet-stream;

#log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
#                  '$status $body_bytes_sent "$http_referer" '
#                  '"$http_user_agent" "$http_x_forwarded_for"';

access_log  off;
server_tokens off;
sendfile        on;
#tcp_nopush     on;

#keepalive_timeout  0;
keepalive_timeout  10;
keepalive_requests 0;

gzip  on;
gzip_comp_level 9;
gzip_min_length  1k;
gzip_buffers     4 16k;
gzip_http_version 1.1;
gzip_types       text/plain application/x-javascript text/css text/xml;
gzip_vary         on;
gzip_static       on;
gzip_proxied      any;
gzip_disable      "MSIE [1-6]\.";

#upstream myoa {
#    server localhost:81 weight=1;
#    server localhost:82 weight=1;
#    keepalive 100;
#}
server {
    #Nginx端口
    listen       81;
    server_name  localhost;
    root   C:/MYOA/webroot/;
    index  index.php index.html index.htm;

    include   common.conf;

    #charset gbk;
    #access_log  logs/host.access.log  main;
    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    location ~* (\.php$|/general/itask/|/general/document/) {
        #Apache地址和端口
        proxy_pass   http://localhost:80;
        include   proxy.conf;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    #location ~ \.php$ {
    #    root           html;
    #    fastcgi_pass   127.0.0.1:9000;
    #    fastcgi_index  index.php;
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;
    #}

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #    deny  all;
    #}
}

打开proxy.conf,内容如下:

        proxy_http_version 1.1;
        proxy_set_header Connection "";
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header REMOTE-HOST $remote_addr;
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Host $http_host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_buffering off;
        proxy_buffer_size 8k;
        proxy_buffers   4 8k;
        client_max_body_size 200m;
        client_body_buffer_size 256k;
        proxy_connect_timeout 60;
        proxy_send_timeout 1200;
        proxy_read_timeout 1200;
        proxy_next_upstream error timeout invalid_header http_500 http_503 http_404;
        proxy_max_temp_file_size 128m;

https://zhidao.baidu.com/question/326837746969381285.html