From 17a8185f97fc323bab5b5892c6f251099e03109f Mon Sep 17 00:00:00 2001 From: David Petric Date: Fri, 7 Apr 2023 18:13:15 +0200 Subject: [PATCH] Vhost log separation --- TODO | 5 ----- roles/configure-nginx/files/vhost.conf.j2 | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 TODO diff --git a/TODO b/TODO deleted file mode 100644 index 83afa8d..0000000 --- a/TODO +++ /dev/null @@ -1,5 +0,0 @@ -Docker -Redis -Mysql - -integration into wpconf \ No newline at end of file diff --git a/roles/configure-nginx/files/vhost.conf.j2 b/roles/configure-nginx/files/vhost.conf.j2 index 446eeea..1ace5f9 100644 --- a/roles/configure-nginx/files/vhost.conf.j2 +++ b/roles/configure-nginx/files/vhost.conf.j2 @@ -13,7 +13,10 @@ server { listen 80; expires $expires; - client_max_body_size 50M; + client_max_body_size 50M; + + ErrorLog /var/log/nginx/{{ vhost_name }}-error.log + CustomLog /var/log/nginx/{{ vhost_name }}-access.log combined autoindex off;