Pārlūkot izejas kodu

feat(server-status): allow remote servers to reach server-status page

tags/v0.39.0
mcarlton00 pirms 5 gadiem
vecāks
revīzija
a3c0022d79
2 mainītis faili ar 15 papildinājumiem un 0 dzēšanām
  1. +10
    -0
      apache/files/server-status.conf.jinja
  2. +5
    -0
      pillar.example

+ 10
- 0
apache/files/server-status.conf.jinja Parādīt failu

@@ -2,9 +2,19 @@
SetHandler server-status
{%- if apache.version == '2.4' %}
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' %}
Order deny,allow
Deny from all
Allow from localhost
{%- for require_type,values in apache.get('server_status_require', {}).items() %}
{%- for value in values %}
Allow from {{ value }}
{%- endfor %}
{%- endfor %}
{%- endif %}
</Location>

+ 5
- 0
pillar.example Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt