005_nginx414_nginx 414 Request-URI Too Large
一、开发请求一个非常长的请求参数
https://jiaju.jyall.me/backend/dish/getSales/?dishId=167271&dishId=166975&dishId=166509&dishId=167088&dishId=166976&dishId=159375&dishId=167099&dishId=167100&dishId=166972&dishId=166984&dishId=167102&dishId=166983&dishId=154888&dishId=166829&dishId=166726&dishId=161672&dishId=166732&dishId=166009&dishId=166551&dishId=163661&dishId=167289&dishId=163187&dishId=166716&dishId=166769&dishId=167306&dishId=166767&dishId=166010&dishId=166008&dishId=166007&dishId=167417&dishId=167409&dishId=167355&dishId=148870&dishId=166730&dishId=165985&dishId=166781&dishId=156045&dishId=159153&dishId=167407&dishId=166012&dishId=163724&dishId=167402&dishId=166836&dishId=166834&dishId=167353&dishId=166426&dishId=166778&dishId=156784&dishId=167336&dishId=167337&dishId=166428&dishId=166661&dishId=166728&dishId=158731&dishId=166542&dishId=166475&dishId=166631&dishId=167332&dishId=166541&dishId=166257&dishId=166634&dishId=156032&dishId=166953&dishId=166632&dishId=166547&dishId=162482&dishId=166545&dishId=166733&dishId=166724&dishId=154890&dishId=154463&dishId=166549&dishId=166653&dishId=166651&dishId=163252&dishId=166783&dishId=166543&dishId=166558&dishId=166550&dishId=166548&dishId=166540&dishId=166647&dishId=166544&dishId=166621&dishId=166940&dishId=166546&dishId=166620&dishId=166576&dishId=166530&dishId=166531&dishId=161561&dishId=100543&dishId=155895&dishId=159897&dishId=158368&dishId=162827&dishId=157485&dishId=160262&dishId=158289&dishId=158297&dishId=155972&dishId=162826&dishId=166525&dishId=163608&dishId=163774&dishId=166810&dishId=166800&dishId=156214&dishId=165984&dishId=166256&dishId=166809&dishId=164279&dishId=144576&dishId=166886&dishId=163438&dishId=162823&dishId=166802&dishId=166296&dishId=159887&dishId=166771&dishId=166811&dishId=158730&dishId=163685&dishId=163097&dishId=164937&dishId=165573&dishId=166812&dishId=100711&dishId=166266&dishId=147612&dishId=166885&dishId=138097&dishId=165742&dishId=166770&dishId=101492&dishId=166269&dishId=155679&dishId=166429&dishId=156838&dishId=163197&dishId=165983&dishId=155880&dishId=159869&dishId=165987&dishId=165214&dishId=135801&dishId=166110&dishId=100427&dishId=166577&dishId=165982&dishId=162821&dishId=166258&dishId=163194&dishId=141532&dishId=166823&dishId=166255&dishId=166335&dishId=165641&dishId=165844&dishId=157486&dishId=102608&dishId=165986&dishId=164004&dishId=2802&dishId=166259&dishId=156387&dishId=166292&dishId=159624&dishId=166278&dishId=155587&dishId=165731&dishId=166354&dishId=166348&dishId=166013&dishId=166135&dishId=166014&dishId=165998&dishId=165981&dishId=163768&dishId=165999&dishId=166279&dishId=166353&dishId=166405&dishId=166018&dishId=156434&dishId=165740&dishId=158287&dishId=163725&dishId=115358&dishId=155583&dishId=163651&dishId=162416&dishId=162775&dishId=156364&dishId=155673&dishId=155670&dishId=156661&dishId=158332&dishId=158733&dishId=163475&dishId=163656&dishId=142641&dishId=163743&dishId=158345&dishId=164920&dishId=159353&dishId=156660&dishId=164762&dishId=165115&dishId=155728&dishId=155694&dishId=163103&dishId=162319&dishId=158645&dishId=162704&dishId=153627&dishId=165216&dishId=166271&dishId=162520&dishId=159874&dishId=165574&dishId=165744&dishId=165566&dishId=100861&dishId=155468&dishId=162550&dishId=165571&dishId=163963&dishId=157335&dishId=144874&dishId=162779&dishId=165738&dishId=156955&dishId=159118&dishId=155695&dishId=156782&dishId=161608&dishId=158735&dishId=165753&dishId=163729&dishId=164039&dishId=152438&dishId=159468&dishId=165567&dishId=164018&dishId=107526&dishId=134981&dishId=162639&dishId=141530&dishId=160175&dishId=101383&dishId=162522&dishId=165572&dishId=156418&dishId=159427&dishId=159856&dishId=155879&dishId=164432&dishId=162828&dishId=162382&dishId=162437&dishId=153451&dishId=163104&dishId=159419&dishId=165997&dishId=165843&dishId=155857&dishId=155883&dishId=162711&dishId=165734&dishId=165948&dishId=155887&dishId=156837&dishId=159864&dishId=163893&dishId=162845&dishId=158670&dishId=161855&dishId=157474&dishId=163539&dishId=159476&dishId=162843&dishId=100514&dishId=159865&dishId=165570&dishId=165479&dishId=155685&dishId=158672&dishId=165105&dishId=162824&dishId=150099&dishId=165481&dishId=163161&dishId=164958&dishId=165581&dishId=165794&dishId=165579&dishId=165565&dishId=160403&dishId=165580
location /backend {
if ( $query_string ~* "^.{2049,}$" ) {
return 414;
} client_max_body_size 0;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://xxxt_api_backend;
}
二、
测试后nginx返回
nginx 414 Request-URI Too Large
005_nginx414_nginx 414 Request-URI Too Large的更多相关文章
- nginx解决超长请求串(413 request Entity too Large错误解决办法)
<div class="hide-article-box text-center" style="display: block;"> <a c ...
- 【Azure 应用服务】PHP应用部署在App Service for Linux环境中,上传文件大于1MB时,遇见了413 Request Entity Too Large 错误的解决方法
问题描述 在PHP项目部署在App Service后,上传文件如果大于1MB就会遇见 413 Request Entity Too Large 的问题. 问题解决 目前这个问题,首先需要分析应用所在的 ...
- nginx:413 Request Entity Too Large 及 修改 PHP上传文件大小配置
开发环境:CentOS + Nginx + PHP + MySql + phpMyAdmin 在用 phpMyAdmin 进行 sql 数据库导入的时候,经常需要上传比较大的 sql 数据文件,而这时 ...
- WCF (413) Request Entity Too Large
有网友碰到过这样的问题:wcf 远程服务器返回了意外响应: (413) Request Entity Too Large. - wsx_net,问题详细内容为:挺不错的博文:wcf 远程服务器返回了意 ...
- 413 Request Entity Too Large
做小视频上传,结果接口总是返回500,服务器端跟踪,根本就进不来,再次翻查,发下服务器返回的其实是413,只不过APP底层接口将所有不是200的回包都转成500了,问题定位. 有了错误码,有了描述,字 ...
- Request Entity Too Large for Self Hosted ASP.Net Web API在Selfhost的api后台怎么解决Request Entity Too Large问题
Request Entity Too Large for Self Hosted ASP.Net Web API在Selfhost的api后台怎么解决Request Entity Too Large问 ...
- nginx 出现413 Request Entity Too Large问题的解决方法
nginx 出现413 Request Entity Too Large问题的解决方法 使用php上传图片(大小1.9M),出现 nginx: 413 Request Entity Too Large ...
- Nginx出现413 Request Entity Too Large错误解决方法
Nginx出现的413 Request Entity Too Large错误,这个错误一般在上传文件的时候出现,打开nginx主配置文件nginx.conf,找到http{}段,添加 解决方法就是 打 ...
- “Request Entity Too Large” 上传图片出现大小限制
昨天公司安卓app上传了图片爆了下面这个错误 <"-//IETF//DTD HTML 2.0//EN"> <html><head> <ti ...
- Nginx出现“413 Request Entity Too Large”错误解决方法
Nginx出现“413 Request Entity Too Large”错误解决方法 2011-03-25 13:49:55| 分类: 默认分类 | 标签:413 request entit ...
随机推荐
- C# String类&Math类&DateTime类
String类: String a = "abcdefghijklmnopqrstuvwxyz"; int length = a.length; //获取字符串的长度: a = ...
- (转)同一服务器部署多个tomcat时的端口号修改详情
背景:在同一个服务器上部署工程,总会遇到tomcat端口占用的情况,所有有必要分清楚各个端口的作用,和需要更改的端口. 同一服务器部署多个tomcat时,存在端口号冲突的问题,所以需要修改tomcat ...
- Xshell配置是vi显示多种颜色
在链接中,点 File菜单——properties 或按快捷键 alt+p 第一步: Properties--->Terminal 右边的窗口中,将Terminal Type 选择为linu ...
- 编译RocketMQ
目前最新版本为 官方没有提供可执行的安装包,只提供了maven项目,去GitHub下载 点击Download ZIP 就可以了,如果你安装了版本控制工具 SVN 或者 GIT 就可以使用它上边的 UR ...
- DOM表单(复选框)
在表单中,尤为重要的一个属性是name <!--复选框的全选.全不选.反选--> <!DOCTYPE> <html> <head lang="en& ...
- scrapy xpath、正则表达式、css选择器
scrapy xpath XPath即为XML路径语言,它是一种用来确定XML(标准通用标记语言的子集)文档中某部分位置的语言.XPath基于XML的树状结构,提供在数据结构树中找寻节点的能力. 学习 ...
- 20190417 Spring Security
参考资料 Spring-Security的4.2.12版本官方文档 Spring Security简介
- SuperArray
package com.lovo.array; public class SuperIntArray { //属性 public int[] array; private int index;//代表 ...
- HostAliases向Pod中添加hosts解析
前言 根据公司同一个项目需要不同的de/te/pe环境,由于相应环境调用的数据库等配置信息存在不同等因素,需要向Kubernetes集群中的Pod添加对应的hosts解析. 解决 以下以yaml文件自 ...
- python -- 进程线程协程专题
进程专栏 multiprocessing 高级模块 要让Python程序实现多进程(multiprocessing),我们先了解操作系统的相关知识. Unix/Linux操作系统提供了一个fork() ...