Skip to content

Commit d13b10f

Browse files
author
James Fryman
committed
Merge pull request voxpupuli#305 from andschwa/patch-alias_autoindex
Adding autoindex to location alias
2 parents cec1716 + a173a3c commit d13b10f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/vhost/vhost_location_alias.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<% end -%>
2323
<% end -%><% end -%>
2424
alias <%= @location_alias %>;
25+
<% if defined? @autoindex -%>
26+
autoindex <%= @autoindex %>;
27+
<% end -%>
2528
<% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%>
2629
<% if value.is_a?(Hash) -%><% value.each do |subkey,subvalue| -%>
2730
<% Array(subvalue).each do |asubvalue| -%>

0 commit comments

Comments
 (0)