• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Question Amplify agent on multiple vhosts

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?
 
Back
Top