view modules/apache/templates/vhost/_php_admin.erb @ 257:675c1cc61eaf

Update Apache module to get CentOS 8 support Unfortunately it only fixes some bits. mod_wsgi still needs other approaches This also overrides the vhost modification to make them come last in the import order (after module loading)
author IBBoard <dev@ibboard.co.uk>
date Sun, 22 Dec 2019 14:43:29 -0500
parents 37675581a273
children
line wrap: on
line source

<% if @php_admin_values and not @php_admin_values.empty? -%>
  <%- @php_admin_values.sort.each do |key,value| -%>
  php_admin_value <%= key %> <%= value %>
  <%- end -%>
<% end -%>
<% if @php_admin_flags and not @php_admin_flags.empty? -%>
  <%- @php_admin_flags.sort.each do |key,flag| -%>
    <%-# normalize flag -%>
    <%- if flag =~ /true|yes|on|1/i then flag = 'on' else flag = 'off' end -%>
  php_admin_flag <%= key %> <%= flag %>
  <%- end -%>
<% end -%>