From 1bb9aed0e2ea4ba7a1e3f9c6471a54100bd30438 Mon Sep 17 00:00:00 2001 From: Thomas Beermann Date: Fri, 27 Mar 2020 15:15:54 +0100 Subject: [PATCH] add option to enable the server status page --- server/httpd.conf.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/httpd.conf.j2 b/server/httpd.conf.j2 index 1e42ee3..507db5f 100644 --- a/server/httpd.conf.j2 +++ b/server/httpd.conf.j2 @@ -69,6 +69,17 @@ EnableSendfile on # Load config files in the "/etc/httpd/conf.d" directory, if any. IncludeOptional conf.d/*.conf +{% if RUCIO_HTTPD_ENABLE_STATUS|default('False') == 'True' %} +LoadModule status_module modules/mod_status.so +ExtendedStatus On + + SetHandler server-status + Order deny,allow + Deny from all + Allow from localhost + +{% endif %} + {% if RUCIO_HTTPD_MPM_MODE is defined and RUCIO_HTTPD_MPM_MODE == "prefork" -%} StartServers {{ RUCIO_HTTPD_START_SERVERS | default('8') }} MinSpareServers {{ RUCIO_HTTPD_MIN_SPARE_SERVERS | default('5') }}