Control Web Panel

WebPanel => Apache => Nginx => Topic started by: gkroxm on March 03, 2018, 05:59:01 PM

Title: ngx_http_log_module add in ningx
Post by: gkroxm 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
Title: Re: ngx_http_log_module add in ningx
Post by: bullten on March 03, 2018, 06:30:11 PM
isnt it activated by default?
Title: Re: ngx_http_log_module add in ningx
Post by: gkroxm 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 
Title: Re: ngx_http_log_module add in ningx
Post by: gkroxm 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;