Nginx returns an empty response to the long URL (unsuccessfully) net :: ERR_EMPTY_RESPONSE

I have several nginx servers running that only write requests made to the log file. I recently noticed that long URLs are not handled by nginx. nginx doesn't even log calls as errors or information or any other level of debugging, and I get (crash) net :: ERR_EMPTY_RESPONSE

instead of this.

If I reduce the character count for this url, it works fine. I am trying to figure out if I can create a different setting, and not split the file into several small calls.

+6
source share
1 answer

Add this to the nginx configuration file:

client_header_buffer_size 64k; large_client_header_buffers 4 64k; 
0
source

Source: https://habr.com/ru/post/979284/


All Articles