如何在uWSGI中配置允许的GET参数字符数? [英] How can I configure allowed number of GET parameter characters in uWSGI?

查看:109
本文介绍了如何在uWSGI中配置允许的GET参数字符数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用nginx + uWSGI运行Django。

I am running Django with nginx + uWSGI.

刚刚从本地开发者迁移到登台服务器,我发现一个特定的GET请求有一个长查询字符串。尝试调试,似乎uWSGI不接受这个查询字符串的长度 - 我可以传递短的字符串,它的工作,一定长度,我开始收到502错误的网关错误。

Having just moved from local dev to a staging server, I have discovered that a particular GET request we make has a long query string. Trying to debug, it seems that uWSGI is not accepting this query string based on length - I can pass short strings and it works, over a certain length I start getting 502 bad gateway errors.

我在uWSGI网站或Google搜索中找不到任何内容。有谁知道可能是什么问题?

I couldn't find anything about this on the uWSGI site or via google searching. Does anyone know what could be the issue?

推荐答案

找到解决方案,这很简单。只需要增加uWSGI缓冲区大小,例如:

Found the solution, it is easy enough. Just need to increase uWSGI buffer-size, eg:

buffer-size = 32768

buffer-size = 32768

这篇关于如何在uWSGI中配置允许的GET参数字符数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆