From cff309ff41abc3620972a54862ad8b4b9b89c462 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 4 Feb 2021 11:30:32 +0100 Subject: [PATCH] nginx: add access to server status on default VHost --- CHANGELOG.md | 1 + nginx/templates/evolinux-default.conf.j2 | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a79e349..4e9bb58a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The **patch** part changes incrementally at each release. ### Added * apache: new variables for logrotate + server-status +* nginx: add access to server status on default VHost ### Changed diff --git a/nginx/templates/evolinux-default.conf.j2 b/nginx/templates/evolinux-default.conf.j2 index 13967aba..1a385e17 100644 --- a/nginx/templates/evolinux-default.conf.j2 +++ b/nginx/templates/evolinux-default.conf.j2 @@ -50,3 +50,13 @@ server { access_log off; } } + +server { + listen 80; + server_name munin; + + location /server-status-{{ nginx_serverstatus_suffix | mandatory }} { + stub_status on; + access_log off; + } +}