2018-11-27 19:53:15 +01:00
|
|
|
<Location "/server-status">
|
|
|
|
SetHandler server-status
|
|
|
|
{%- if apache.version == '2.4' %}
|
|
|
|
Require local
|
2019-12-19 15:06:10 +01:00
|
|
|
{%- for require_type,values in apache.get('server_status_require', {}).items() %}
|
|
|
|
{%- for value in values %}
|
|
|
|
Require {{ require_type }} {{ value }}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endfor %}
|
2018-11-27 19:53:15 +01:00
|
|
|
{%- elif apache.version == '2.2' %}
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
Allow from localhost
|
2019-12-19 15:06:10 +01:00
|
|
|
{%- for require_type,values in apache.get('server_status_require', {}).items() %}
|
|
|
|
{%- for value in values %}
|
|
|
|
Allow from {{ value }}
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endfor %}
|
2018-11-27 19:53:15 +01:00
|
|
|
{%- endif %}
|
|
|
|
</Location>
|