问题
I am running Django with nginx + uWSGI.
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.
I couldn't find anything about this on the uWSGI site or via google searching. Does anyone know what could be the issue?
回答1:
Found the solution, it is easy enough. Just need to increase uWSGI buffer-size, eg:
buffer-size = 32768
来源:https://stackoverflow.com/questions/12552885/how-can-i-configure-allowed-number-of-get-parameter-characters-in-uwsgi