Saltstack Official Apache Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
578B

  1. <Location "/server-status">
  2. SetHandler server-status
  3. {%- if apache.version == '2.4' %}
  4. Require local
  5. {%- for require_type,values in apache.get('server_status_require', {}).items() %}
  6. {%- for value in values %}
  7. Require {{ require_type }} {{ value }}
  8. {%- endfor %}
  9. {%- endfor %}
  10. {%- elif apache.version == '2.2' %}
  11. Order deny,allow
  12. Deny from all
  13. Allow from localhost
  14. {%- for require_type,values in apache.get('server_status_require', {}).items() %}
  15. {%- for value in values %}
  16. Allow from {{ value }}
  17. {%- endfor %}
  18. {%- endfor %}
  19. {%- endif %}
  20. </Location>