diff --git a/recipes/default.rb b/recipes/default.rb index 2392c1a..b4200bd 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -115,6 +115,7 @@ docroot node['wordpress']['dir'] server_name node['fqdn'] server_aliases node['wordpress']['server_aliases'] + server_port node['apache']['listen_ports'] enable true end end diff --git a/templates/default/wordpress.conf.erb b/templates/default/wordpress.conf.erb index 56b75f2..45f4e6e 100644 --- a/templates/default/wordpress.conf.erb +++ b/templates/default/wordpress.conf.erb @@ -1,4 +1,4 @@ - +<%= a %> <% end %> > ServerName <%= @params[:server_name] %> ServerAlias <% @params[:server_aliases].each do |a| %><%= a %> <% end %> DocumentRoot <%= @params[:docroot] %>