upstream sent too big header while reading response header from upstream

Симптомы — при открытии страницы сразу получаем ошибку 502. В логах апача и сайта ничего нет.

В error.log nginx’a можно увидеть следующее:

*520102 upstream sent too big header while reading response header from upstream, client: 195.239.178.205, server: clubberplanet.ru, request: «GET /profile.php?ID=ToplessDJaurikA&lang=ru HTTP/1.0», upstream: «http://178.63.198.38:8080/profile.php?ID=ToplessDJaurikA&lang=ru», host: «clubberplanet.ru»

Это значит, что Nginx получает очень большой заголовок. Лечится так:

proxy_buffers 8 16k;
proxy_buffer_size 32k;

В блок http {}.

Добавить комментарий

Ваш адрес email не будет опубликован.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.