N
N
Nadim Zakirov2021-09-07 09:12:46
PHP
Nadim Zakirov, 2021-09-07 09:12:46

How to increase header length in nginx?

I noticed that with a large number of GET parameters, nginx crashes with a 502 error. Can you please tell me if it is possible to increase the limit on the length of the request headers, and if so, what parameters in the configuration need to be edited?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nadim Zakirov, 2021-09-08
@zkrvndm

Thank you all for your attention, I misdiagnosed the problem. It turned out that my nginx crashed not because I sent a lot of GET parameters, but because I returned too large headers in my php script. In general, it turns out it's a bad idea to pass too much information in headers.

K
ky0, 2021-09-07
@ky0

It's not nginx that's crashing, it's what's behind it. Accordingly, smoke the application logs and its settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question