Heim > Fragen und Antworten > Hauptteil
access_log /var/log/nginx/${server_name}-access.log; error_log /var/log/nginx/$server_name-error.log error;
巴扎黑2017-05-16 17:25:23
把花括号去掉就可以了如 access_log /var/log/nginx/$server_name-access.log;