visualcons
New Pleskian
Hi, I should insert these additional directives for Amplify agent (access log):
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' ;
And then:
access_log /var/log/nginx/access.log main_ext;
error_log /var/log/nginx/error.log warn;
I have already tried to insert these directives in /etc/nginx/nginx.conf but they are not read, probably because every vhost has its configuration file for access and error.
Could you help me?
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' ;
And then:
access_log /var/log/nginx/access.log main_ext;
error_log /var/log/nginx/error.log warn;
I have already tried to insert these directives in /etc/nginx/nginx.conf but they are not read, probably because every vhost has its configuration file for access and error.
Could you help me?