view modules/apache/templates/vhost/_aliases.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 b8d6ada284dd
line wrap: on
line source

<% if @aliases and ! @aliases.empty? -%>
  ## Alias declarations for resources outside the DocumentRoot
  <%- [@aliases].flatten.compact.each do |alias_statement| -%>
    <%- if alias_statement["path"] != '' -%>
      <%- if alias_statement["alias"] and alias_statement["alias"] != '' -%>
  Alias <%= alias_statement["alias"] %> "<%= alias_statement["path"] %>"
      <%- elsif alias_statement["aliasmatch"] and alias_statement["aliasmatch"] != '' -%>
  AliasMatch <%= alias_statement["aliasmatch"] %> "<%= alias_statement["path"] %>"
      <%- elsif alias_statement["scriptalias"] and alias_statement["scriptalias"] != '' -%>
  ScriptAlias <%= alias_statement["scriptalias"] %> "<%= alias_statement["path"] %>"
      <%- elsif alias_statement["scriptaliasmatch"] and alias_statement["scriptaliasmatch"] != '' -%>
  ScriptAliasMatch <%= alias_statement["scriptaliasmatch"] %> "<%= alias_statement["path"] %>"
      <%- end -%>
    <%- end -%>
  <%- end -%>
<% end -%>