8d33fd63f1
Conflicts: manifests/config.pp manifests/init.pp manifests/params.pp manifests/resource/location.pp manifests/resource/vhost.pp manifests/service.pp templates/vhost/vhost_footer.erb templates/vhost/vhost_header.erb templates/vhost/vhost_location_directory.erb templates/vhost/vhost_location_proxy.erb templates/vhost/vhost_ssl_header.erb tests/vhost.pp
21 lines
737 B
Text
21 lines
737 B
Text
location <%= location %> {
|
|
<% if @location_cfg_prepend -%><% location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%>
|
|
<%= key %> <%= value %>;
|
|
<% end -%><% end -%>
|
|
root <%= www_root %>;
|
|
<% 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 -%>
|
|
}
|