view modules/apache/templates/vhost/_error_document.erb @ 106:ef0926ee389a puppet-3.6

Lock down Apache headers for security, based on https://securityheaders.io/
author IBBoard <dev@ibboard.co.uk>
date Sat, 14 May 2016 17:10:10 +0100
parents 956e484adc12
children
line wrap: on
line source

<% if @error_documents and ! @error_documents.empty? -%>
  <%- [@error_documents].flatten.compact.each do |error_document| -%>
    <%- if error_document["error_code"] != '' and error_document["document"] != '' -%>
  ErrorDocument <%= error_document["error_code"] %> <%= error_document["document"] %>
    <%- end -%>
  <%- end -%>
<% end -%>