From 1fad8594c5d9978762d868ebec756c7d5224dc6e Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 27 Feb 2014 21:13:58 -0500 Subject: [PATCH] PR #26 - apache2 port parameter Signed-off-by: Sean OMeara --- recipes/default.rb | 1 + templates/default/wordpress.conf.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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] %>