Author Topic: ngx_http_log_module add in ningx  (Read 4643 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
ngx_http_log_module add in ningx
« on: March 03, 2018, 09:55:12 AM »
Hi every one just fresh installed CWP and its working fine for me with nginx but i wants to track logs to wants to add module ngx_http_log_module can any one will please help me how to added or rebuild ningx with ngx_http_log_module  thanks in advance

Offline
*
Re: ngx_http_log_module add in ningx
« Reply #1 on: March 04, 2018, 06:56:58 AM »
Issue Resolved By just adding
in http
{             }
log_format  main_ext  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for" '
                      '"$host" sn="$server_name" '
                      'rt=$request_time '
                      'ua="$upstream_addr" us="$upstream_status" '
                      'ut="$upstream_response_time" ul="$upstream_response_length" '
                      'cs=$upstream_cache_status' ;
   access_log  /var/log/nginx/access.log  main_ext;