Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed server alias issue when using multiple aliases.

  • Loading branch information...
commit f7990afada3c3d226c4fbf1096bfe580341ba01a 1 parent 9d1fa5d
P. Barrett Little authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 site-cookbooks/hugo_deploy/templates/default/vhost.erb
View
6 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] %>
Please sign in to comment.
Something went wrong with that request. Please try again.