NGINX Error: Upstream Sent Too Big Header While Reading Response Header from Upstream
Last updated
Last updated
NGINX is not able to read the header that is sent from the upstream as it is bigger than the configured size and the request is failing. In the NGINX error log (locating in: /var/log/nano_agent/rpmanager/nginx_log/error.log): "...*1435367 upstream sent too big header while reading response header from upstream ..."
The configured buffer that caches the responses is too small.
WHAT TO DO?
Open the Infinity Portal
Click on Cloud tab → Assets
Navigate to the relevant asset and click on it.
Click on Advanced... (Under the certificate section), and click on Additional Settings
Mark V on the Additional Location Block Instruction checkbox and upload a .txt file with these lines in it:
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
Click OK.
Enforce the policy.