Sha256: 7bbc297aa5281739e1ee35ad52c11b6645f090fe9a64d4b69aa878f1bb89b90e

Contents?: true

Size: 951 Bytes

Versions: 11

Compression:

Stored size: 951 Bytes

Contents

<%- if @scriptaliases.is_a?(Array) -%>
<%-  aliases = @scriptaliases -%>
<%- elsif @scriptaliases.is_a?(Hash) -%>
<%-  aliases = [@scriptaliases] -%>
<%- else -%>
<%-  # Nothing to do with any other data type -%>
<%-  aliases = [] -%>
<%- end -%>
<%- if @scriptalias or !aliases.empty? -%>
  ## Script alias directives
<%# Combine scriptalais and scriptaliases into a single data structure -%>
<%# for backward compatibility and ease of implementation -%>
<%- aliases << { 'alias' => '/cgi-bin/', 'path' => @scriptalias } if @scriptalias -%>
<%- aliases.flatten.compact! -%>
<%- 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 -%>
<%- end -%>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/apache/templates/vhost/_scriptalias.erb
freighthop-0.6.0 modules/apache/templates/vhost/_scriptalias.erb
freighthop-0.5.2 modules/apache/templates/vhost/_scriptalias.erb
freighthop-0.5.1 modules/apache/templates/vhost/_scriptalias.erb
freighthop-0.5.0 modules/apache/templates/vhost/_scriptalias.erb
freighthop-0.4.1 modules/apache/templates/vhost/_scriptalias.erb
freighthop-0.4.0 modules/apache/templates/vhost/_scriptalias.erb
freighthop-0.3.3 modules/apache/templates/vhost/_scriptalias.erb
freighthop-0.3.2 modules/apache/templates/vhost/_scriptalias.erb
freighthop-0.3.1 modules/apache/templates/vhost/_scriptalias.erb
freighthop-0.3.0 modules/apache/templates/vhost/_scriptalias.erb