Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed server alias issue when using multiple aliases.

  • Loading branch information...
commit f7990afada3c3d226c4fbf1096bfe580341ba01a 1 parent 9d1fa5d
P. Barrett Little authored
6 site-cookbooks/hugo_deploy/templates/default/vhost.erb
@@ -3,11 +3,7 @@
3 3 <% if @node[:hugo][:app][:web][:server_name] %>
4 4 ServerName <%= @node[:hugo][:app][:web][:server_name] %>
5 5 <% end %>
6   - <% if @node[:hugo][:app][:web][:server_aliases] %>
7   - <% @node[:hugo][:app][:web][:server_aliases].each do |i| %>
8   - ServerAlias <%= @node[:hugo][:app][:web][:server_aliases][i] %>
9   - <% end %>
10   - <% end %>
  6 + <%= 'ServerAlias ' unless @node[:hugo][:app][:web][:server_aliases].empty? %><% @node[:hugo][:app][:web][:server_aliases].each do |a| %><%= a + ' ' %><% end %>
11 7 </VirtualHost>
12 8
13 9 <% if @node[:hugo][:app][:ssl] %>

0 comments on commit f7990af

Please sign in to comment.
Something went wrong with that request. Please try again.