Skip to content

Commit

Permalink
add option to enable the server status page
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeerman committed Mar 27, 2020
1 parent d4d9445 commit 1bb9aed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/httpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
{% 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') }}
Expand Down

0 comments on commit 1bb9aed

Please sign in to comment.