How to make the log file printed by access_log split

2013-07-25 Thread shawnxzhou
what's the limit of the size of log file, and what will happen when it reaches the limitation? if I want to split the log file by timeline, say start a new file on the beginning of an hour, how can I configure ngnix? thanks Posted at Nginx Forum: http://forum.nginx.org/read.php?2,241226,241226#m

Re: How to log POST body data?

2013-07-14 Thread shawnxzhou
request_body; > > It needs this 3rd party module though: > http://wiki.nginx.org/HttpEchoModule#echo_read_request_body > > > On Sun, Jul 14, 2013 at 7:23 AM, shawnxzhou > wrote: > > > I'm trying to use $request_body but get '-' in my log file for this >

Re: How to log POST body data?

2013-07-14 Thread shawnxzhou
yes, it works! thanks a lot Posted at Nginx Forum: http://forum.nginx.org/read.php?2,240828,240843#msg-240843 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

How to log POST body data?

2013-07-14 Thread shawnxzhou
I'm trying to use $request_body but get '-' in my log file for this field here is my configure file, is there sth wrong or the $request_body has other deps to work? http { log_format client '$remote_addr - $remote_user $request_time $upstream_response_time ' '[$time_local] "$requ