一、开发请求一个非常长的请求参数

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的更多相关文章

  1. nginx解决超长请求串(413 request Entity too Large错误解决办法)

    <div class="hide-article-box text-center" style="display: block;"> <a c ...

  2. 【Azure 应用服务】PHP应用部署在App Service for Linux环境中,上传文件大于1MB时,遇见了413 Request Entity Too Large 错误的解决方法

    问题描述 在PHP项目部署在App Service后,上传文件如果大于1MB就会遇见 413 Request Entity Too Large 的问题. 问题解决 目前这个问题,首先需要分析应用所在的 ...

  3. nginx:413 Request Entity Too Large 及 修改 PHP上传文件大小配置

    开发环境:CentOS + Nginx + PHP + MySql + phpMyAdmin 在用 phpMyAdmin 进行 sql 数据库导入的时候,经常需要上传比较大的 sql 数据文件,而这时 ...

  4. WCF (413) Request Entity Too Large

    有网友碰到过这样的问题:wcf 远程服务器返回了意外响应: (413) Request Entity Too Large. - wsx_net,问题详细内容为:挺不错的博文:wcf 远程服务器返回了意 ...

  5. 413 Request Entity Too Large

    做小视频上传,结果接口总是返回500,服务器端跟踪,根本就进不来,再次翻查,发下服务器返回的其实是413,只不过APP底层接口将所有不是200的回包都转成500了,问题定位. 有了错误码,有了描述,字 ...

  6. 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问 ...

  7. nginx 出现413 Request Entity Too Large问题的解决方法

    nginx 出现413 Request Entity Too Large问题的解决方法 使用php上传图片(大小1.9M),出现 nginx: 413 Request Entity Too Large ...

  8. Nginx出现413 Request Entity Too Large错误解决方法

    Nginx出现的413 Request Entity Too Large错误,这个错误一般在上传文件的时候出现,打开nginx主配置文件nginx.conf,找到http{}段,添加 解决方法就是 打 ...

  9. “Request Entity Too Large” 上传图片出现大小限制

    昨天公司安卓app上传了图片爆了下面这个错误 <"-//IETF//DTD HTML 2.0//EN"> <html><head> <ti ...

  10. Nginx出现“413 Request Entity Too Large”错误解决方法

    Nginx出现“413 Request Entity Too Large”错误解决方法 2011-03-25 13:49:55|  分类: 默认分类 |  标签:413  request  entit ...

随机推荐

  1. Hadoop HDFS命令

    hadoop fs -mkdir  创建HDFS目录 # hadoop fs -mkdir /data Hadoop fs -ls  列出HDFS目录 # hadoop fs -ls /data ha ...

  2. 使用“DiskGenius”精确隐藏硬盘坏道

    现在大家手中可能都有些有坏道的硬盘,也可能现在机器上的硬盘也出问题了.硬盘有坏道,肯定不会全部都是坏道,不能使用了.但我们因此而不能使用了,那么就太可惜了.所以,只要把有坏道的区域隐藏起来,就如同使用 ...

  3. 基于Spring Cloud的微服务入门教程

    (本教程的原地址发布在本人的简书上:http://www.jianshu.com/p/947d57d042e7,若各位看官有什么问题或不同看法请在这里或简书留言,谢谢!) 本人也是前段时间才开始接触S ...

  4. (next_permutation)Ignatius and the Princess II hdu102

    Ignatius and the Princess II Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K ( ...

  5. 博文中标题的样式H1H2H3H4

    设置博文中标题的样式H1 设置博文中标题的样式H2 设置博文中标题的样式H3 设置博文中标题的样式H4 设置博文中标题的样式H5 设置博文中标题的样式H6

  6. python---tornado框架模板引擎本质compile和exec(eval)

    namespace = {'name':'sda','age':[12,46,24],} code = """def say(): return 'name %s, ag ...

  7. PHP7 学习笔记(七)如何使用zephir编译一个扩展记录

    一.zephir 编译遇到的错误 安装 git clone https://github.com/phalcon/zephir $ cd zephir $ ./install-json $ ./ins ...

  8. B树学习总结

    1,B树的基本介绍 ①B树,相比于二叉树.红黑树而言,它的特点就是树的高度比其他类型的树要低很多.如何做到低呢?B树中的每个结点的分支数目非常大,即每个结点有很多很多孩子结点.这样,在相同结点数目情况 ...

  9. L1比L2更稀疏

    1. 简单列子: 一个损失函数L与参数x的关系表示为: 则 加上L2正则化,新的损失函数L为:(蓝线) 最优点在黄点处,x的绝对值减少了,但依然非零. 如果加上L1正则化,新的损失函数L为:(粉线) ...

  10. OpenCV不同类型Mat的at方法访问元素时该如何确定模板函数的typename(转)

    自从OpenCV推出了Mat后越来越像是Matlab了,使用起来方便了很多,但是,在用at方法访问Mat时,如何选用合适的typename类型来访问相应的Mat元素是个头疼的问题. 比如: int H ...