Mercurial > repos > other > Puppet
view modules/apache/templates/vhost/_scriptalias.erb @ 442:2879e2d4148e
Configure test machine
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 03 Apr 2023 19:41:02 +0100 |
parents | b8d6ada284dd |
children | adf6fe9bbc17 |
line wrap: on
line source
<%- aliases = @scriptaliases -%> ## Script alias directives <%# Combine scriptalias and scriptaliases into a single data structure -%> <%# for backward compatibility and ease of implementation -%> <%- aliases << { 'alias' => '/cgi-bin', 'path' => @scriptalias } if @scriptalias -%> <%- aliases.each do |salias| -%> <%- if salias["path"] != '' -%> <%- if salias["alias"] and salias["alias"] != '' -%> ScriptAlias <%= salias['alias'] %> "<%= salias['path'] %>" <%- elsif salias["aliasmatch"] and salias["aliasmatch"] != '' -%> ScriptAliasMatch <%= salias['aliasmatch'] %> "<%= salias['path'] %>" <%- end -%> <%- end -%> <%- end -%>