mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-01 12:02:09 +07:00
Fix vhost log filename
This commit is contained in:
@@ -58,12 +58,12 @@ server {
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if item.use_access_log is defined and item.use_access_log %}
|
{% if item.use_access_log is defined and item.use_access_log %}
|
||||||
access_log {{ nginx_log_dir }}/{{ item.name }}_access.log combined;
|
access_log {{ nginx_log_dir }}/{{ item.name[0] }}_access.log combined;
|
||||||
{% else %}
|
{% else %}
|
||||||
access_log off;
|
access_log off;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.use_error_log is defined and item.use_error_log %}
|
{% if item.use_error_log is defined and item.use_error_log %}
|
||||||
error_log {{ nginx_log_dir }}/{{ item.name }}_error.log {{ nginx_error_log_level }};
|
error_log {{ nginx_log_dir }}/{{ item.name[0] }}_error.log {{ nginx_error_log_level }};
|
||||||
{% else %}
|
{% else %}
|
||||||
error_log off;
|
error_log off;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user