T
T
tvoyadres2019-08-30 22:08:15
Nginx
tvoyadres, 2019-08-30 22:08:15

Nginx issue with long GET requests?

In general, this NGNIX got me, why am I so unlucky with it, the whole Internet rummaged through, I didn’t find a solution
, and so on the site people use search
and there are such requests long requests with Russian letters of the 139th rifle division
https://tvoyadres.ru/chuvashskaya-respublika /chebo...
as a result I get a 502 error, if a part of the code is shortened, then everything plows.
As I understand it, the problem is with the length of the url, the nginx + apache system used to plow everything on apache.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
hell, 2019-08-30
@tvoyadres

what kind of config do you have
, so we
put it in the http section (it is rather in nginx.conf)
proxy_buffer_size 64k;
proxy_buffers 4 64k;
proxy_busy_buffers_size 64k;
If you do not have access to nginx.conf, put it in the current one - right after the charset

D
Dmitry Derepko, 2019-08-30
@xEpozZ

https://www.google.com/search?q=nginx+long+url+502...

T
tvoyadres, 2019-08-30
@tvoyadres

I decided on the logs
upstream sent too big header while reading response header from upstream, client
in nginx.cof
added to the
http section {
...
proxy_buffer_size 32k;
proxy_buffers 8 16k;
proxy_busy_buffers_size 32k;
...
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question