浏览代码

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

Allow remote servers to access server status page
tags/v0.39.0
Imran Iqbal 5 年前
父节点
当前提交
d78d0cc166
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 15 次插入0 次删除
  1. +10
    -0
      apache/files/server-status.conf.jinja
  2. +5
    -0
      pillar.example

+ 10
- 0
apache/files/server-status.conf.jinja 查看文件

@@ -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 查看文件

@@ -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

正在加载...
取消
保存