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

0 Members and 1 Guest are viewing this topic.

Offline
*
ngx_http_log_module add in ningx
« on: March 03, 2018, 05:59:01 PM »
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 03, 2018, 06:30:11 PM »
isnt it activated by default?

Offline
*
Re: ngx_http_log_module add in ningx
« Reply #2 on: March 03, 2018, 06:32:20 PM »
ngx_http_log_module is not activated by default we have to recompile it again for add it 

Offline
*
Re: ngx_http_log_module add in ningx
« Reply #3 on: March 04, 2018, 06:55:57 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;