You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that echo-module cannot print nginx log when I post a large body,(not so large, such as more than 20K);
Everything works fine if I post a client body smaller than 1kb, there are good Nginx logs.
It doesn't work If client body size is more than several TEN KB bytes. the client body is '-' in the Nginx log.
I've added 'echo_read_request_body;' in the location to avoid an empty $request_body because Nginx may save client body to a temp file;
I've configured following in my Nginx.conf:
@azuryyu For meaningful values in $request_body, you should configure client_body_buffer_size as well. It's more about the nginx core's $request_body behavior. I'm tired of educating people on standard nginx behaviors. alas.
I found that echo-module cannot print nginx log when I post a large body,(not so large, such as more than 20K);
Everything works fine if I post a client body smaller than 1kb, there are good Nginx logs.
It doesn't work If client body size is more than several TEN KB bytes. the client body is '-' in the Nginx log.
I've added 'echo_read_request_body;' in the location to avoid an empty $request_body because Nginx may save client body to a temp file;
I've configured following in my Nginx.conf:
client_max_body_size 1024M;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
The text was updated successfully, but these errors were encountered: