From dac778565ececb8e2b44c16f488d76eaad47d9b5 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mar 14 2019 17:46:50 +0000 Subject: write separate access/error logs for each static vhost --- diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index 1e8189a..3c9345f 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -51,6 +51,8 @@ nginx: - error_page: 500 502 503 504 /50x.html - location = /50x.html: - root: /srv/www/htdocs + - access_log: /var/log/nginx/{{ website }}.access.log combined + - error_log: /var/log/nginx/{{ website }}.error.log enabled: True {% endfor %}