Skip to content

Commit

Permalink
PR #26 - apache2 port parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Sean OMeara <[email protected]>
  • Loading branch information
Egor authored and Sean OMeara committed Feb 28, 2014
1 parent 80aa49b commit 1fad859
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion templates/default/wordpress.conf.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<VirtualHost *:80>
<VirtualHost *:<% @params[:server_port].each do |a| %><%= a %> <% end %> >
ServerName <%= @params[:server_name] %>
ServerAlias <% @params[:server_aliases].each do |a| %><%= a %> <% end %>
DocumentRoot <%= @params[:docroot] %>
Expand Down

0 comments on commit 1fad859

Please sign in to comment.