Error: Unexpected HTTP status 413 'Request Entity Too Large' on

摘要:
因为nginx_max_body_大小设置太小。默认情况下,上载文件的大小小于要上载的文件的大小。只需增加该值。在这里,我在配置文件的服务器下对其进行如下更改:server{client_max_body_size100M;listen80;server_nametest.sdd.twsapp.com;location/svn{proxy_passhttp://127.0.0.1:81/

由于nginx的client_max_body_size设置过小,默认上传的文件小于所要上传的文件大小,把这个值调大就可以了,我这里在配置文件的server下更改如下:

server {

    client_max_body_size 100M;

    listen       80;

    server_name  test.ssdd.twsapp.com;

    location /svn {

        proxy_pass  http://127.0.0.1:81/svn;

    }

    location / {

        return 404;

    }

}

更改完nginx  -s reload即可

 

免责声明:文章转载自《Error: Unexpected HTTP status 413 'Request Entity Too Large' on》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇节点操作易混点HTTP1.1初识下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Nginx配置同一个域名http与https两种方式都可访问

##配置 http://test.pay.joyhj.com https://test.pay.joyhj.com 两者都可访问 # vim /usr/local/nginx/conf/vhost/test.pay.joyhj.com.confserver{   listen 80;   listen 443 ssl;  ##把ssl on;这行注释掉,...

nginx封IP脚本

#!/bin/bash max=4confdir=/etc/nginx/conf.d/blockips.conf logdir=/var/log/nginx/access.log echo "">$confdir cat $logdir|awk '/send_sms/ {print $1}'|sort|uniq -c|sort -n|whilerea...

nginx重启

转载自:https://www.cnblogs.com/codingcloud/p/5095066.html 启动 启动代码格式:nginx安装目录地址 -c nginx配置文件地址 例如: [root@LinuxServer sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/ngin...

Nginx基础配置

  Nginx的配置中,至少需要加载几个核心模块和一个事件模块。这些模块运行所支持的配置项被称为基本配置---其他模块执行时的依赖配置项。     本文主要记录基本配置项的用法,这里主要分四类来进行记录: 1.用于调试、定位问题的 2.正常运行的 3.优化性能的 4.事件类 在Nginx中有一些配置项,不需要显式配置,它们具有一个默认的值,...

vscode调试openresty

一、快速上手 1、软件下载   官网地址:https://code.visualstudio.com/   安装视频:https://code.visualstudio.com/docs/getstarted/introvideos 2、配置插件   插件安装:https://blog.csdn.net/qq_38161040/article/detail...

nginx安装配置lua支持

nginx安装很简单,配置lua相关的支持就需要额外的安装一些库和编译。 一、准备环境 yum -y install lua*wget https://luajit.org/download/LuaJIT-2.0.4.tar.gz wget https://github.com/simpl/ngx_devel_kit/archive/v0.2.19.tar...