Mini Shell
Direktori : /etc/nginx/conf.d/ |
|
Current File : //etc/nginx/conf.d/global-logging.conf |
map $msec $msec_no_microseconds {
~([0-9]+)\. $1;
}
error_log /var/log/nginx/error.log warn;
log_format cp_combined '$server_name:$server_port $remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
log_format cp_common '$server_name:$server_port $remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent';
log_format cp_bytes_server '$msec_no_microseconds $request_length .\n$msec_no_microseconds $bytes_sent .';
# pipelog_format/pipelog is from module loaded in:
# /etc/nginx/conf.d/modules/ngx_http_pipelog_module.conf
pipelog_format bytesvhost '$server_name $msec_no_microseconds $request_length .\n$server_name $msec_no_microseconds $bytes_sent .';
pipelog_format combinedvhost '$server_name:$server_port $remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
pipelog "/usr/local/cpanel/bin/splitlogs --dir=/var/log/nginx/domains --main=l7cp.vnetindia.com --suffix=-bytes_log" bytesvhost;
pipelog "/usr/local/cpanel/bin/splitlogs --dir=/var/log/nginx/domains --main=l7cp.vnetindia.com --mainout=/var/log/nginx/access.log" combinedvhost;
Zerion Mini Shell 1.0