Browse Source

Merge pull request #273 from mcarlton00/server-status-sources

Allow remote servers to access server status page
tags/v0.39.0
Imran Iqbal 5 years ago
parent
commit
d78d0cc166
No account linked to committer's email address
2 changed files with 15 additions and 0 deletions
  1. +10
    -0
      apache/files/server-status.conf.jinja
  2. +5
    -0
      pillar.example

+ 10
- 0
apache/files/server-status.conf.jinja View File

SetHandler server-status SetHandler server-status
{%- if apache.version == '2.4' %} {%- if apache.version == '2.4' %}
Require local Require local
{%- for require_type,values in apache.get('server_status_require', {}).items() %}
{%- for value in values %}
Require {{ require_type }} {{ value }}
{%- endfor %}
{%- endfor %}
{%- elif apache.version == '2.2' %} {%- elif apache.version == '2.2' %}
Order deny,allow Order deny,allow
Deny from all Deny from all
Allow from localhost Allow from localhost
{%- for require_type,values in apache.get('server_status_require', {}).items() %}
{%- for value in values %}
Allow from {{ value }}
{%- endfor %}
{%- endfor %}
{%- endif %} {%- endif %}
</Location> </Location>

+ 5
- 0
pillar.example View File

SSLProtocol: all -SSLv2 -SSLv3 -TLSv1 SSLProtocol: all -SSLv2 -SSLv3 -TLSv1
SSLHonorCipherOrder: 'On' SSLHonorCipherOrder: 'On'
SSLOptions: "+StrictRequire" SSLOptions: "+StrictRequire"
server_status_require:
ip:
- 10.8.8.0/24
host:
- foo.example.com

Loading…
Cancel
Save