Sha256: 21045a52183946e5bfd02f7ecdfb988591f2d32e3ce635a69ca7f5b9937c36c0

Contents?: true

Size: 1013 Bytes

Versions: 20

Compression:

Stored size: 1013 Bytes

Contents

  location <%= @location %> {
<% if @location_allow -%><% @location_allow.each do |allow_rule| -%>
  allow <%= allow_rule %>
<% end -%><% end -%>
<% if @location_deny -%><% @location_deny.each do |deny_rule| -%>
  deny <%= deny_rule %>
<% end -%><% end -%>
<% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%>
    <%= key %> <%= value %>;
<% end -%><% end -%>
<% if defined? @www_root -%>
    root  <%= @www_root %>;
<% end -%>
<% if @try_files -%>
    try_files <% @try_files.each do |try| -%> <%= try %> <% end -%>;
<% end -%>
<% if @index_files -%>
    index <% @index_files.each do |i| %> <%= i %><% end %>;
<% end -%>
<% if defined? auth_basic -%>
    auth_basic           "<%= @auth_basic %>";
<% end -%>
<% if defined? auth_basic_user_file -%>
    auth_basic_user_file <%= @auth_basic_user_file %>;
<% end -%>
<% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%>
    <%= key %> <%= value %>;
<% end -%><% end -%>
  }

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.6.0 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.5.2 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.5.1 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.5.0 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.4.1 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.4.0 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.3.3 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.3.2 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.3.1 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.3.0 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.2.1 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.2.0 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.1.0 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.0.6 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.0.5 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.0.4 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.0.3 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.0.2 modules/nginx/templates/vhost/vhost_location_directory.erb
freighthop-0.0.1 modules/nginx/templates/vhost/vhost_location_directory.erb