• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

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