Permalink
Browse files

Fixed server alias issue when using multiple aliases.

  • Loading branch information...
1 parent 9d1fa5d commit f7990afada3c3d226c4fbf1096bfe580341ba01a P. Barrett Little committed Apr 8, 2010
Showing with 1 addition and 5 deletions.
  1. +1 −5 site-cookbooks/hugo_deploy/templates/default/vhost.erb
@@ -3,11 +3,7 @@
<% if @node[:hugo][:app][:web][:server_name] %>
ServerName <%= @node[:hugo][:app][:web][:server_name] %>
<% end %>
- <% if @node[:hugo][:app][:web][:server_aliases] %>
- <% @node[:hugo][:app][:web][:server_aliases].each do |i| %>
- ServerAlias <%= @node[:hugo][:app][:web][:server_aliases][i] %>
- <% end %>
- <% end %>
+ <%= 'ServerAlias ' unless @node[:hugo][:app][:web][:server_aliases].empty? %><% @node[:hugo][:app][:web][:server_aliases].each do |a| %><%= a + ' ' %><% end %>
</VirtualHost>
<% if @node[:hugo][:app][:ssl] %>

0 comments on commit f7990af

Please sign in to comment.