Control Web Panel
WebPanel => Apache => Nginx => Topic started 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
-
isnt it activated by default?
-
ngx_http_log_module is not activated by default we have to recompile it again for add it
-
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;