crowbar/crowbar-core

View on GitHub
chef/cookbooks/apache2/templates/suse/mods/status.conf.erb

Summary

Maintainability
Test Coverage
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
#
# see https://httpd.apache.org/docs-2.2/mod/mod_status.html
#
<IfModule mod_status.c>
    <Location /server-status>
        SetHandler server-status
        <%- if node[:apache][:version].to_f < 2.4 %>
        Order deny,allow
        Deny from all
        Allow from localhost ipv6-localhost 127.0.0.1
        <%- else %>
        Require local
        <%- end %>
    </Location>
</IfModule>