Nginx url limit 502 gateway
amazon-ec2, amazon-web-services, nginx
Solution
To answer your question, there is a setting you can change in the nginx.conf file containing your server's configuration.
Set the following setting to something that seems fitting to your situation:
large_client_header_buffers 4 16k;
Find the documentation for it here.
I would suggest to use a POST request in case your ~3000 character requests get bigger and your nginx configuration reaches it limit.
Problem
I have a question but I accept other suggestions that bypass this feature. Basically I'm sending big lines of text ~3000 characters to my server in a get request and the server sends it to google translate as params in a url. The problem: Nginx throws me a 502 bad gateway error when the url is > 1900 characters. How can I increase the limit of my nginx url? Alternative Solution: Sending a post request with the 3000 characters in a JSON as a string?