# This file was generated by Chef for <%= node['fqdn'] %>.
# Do NOT modify this file by hand!

<% node['apache']['listen_ports'].map(&:to_i).uniq.each do |port| -%>
<% node['apache']['listen_addresses'].uniq.each do |address| -%>
Listen <%= address.length > 0 ? "#{address}:" : '' %><%= port %>
<% end -%>
<% if node['apache']['version'] != "2.4" -%>
NameVirtualHost *:<%= port %>
<% end -%>
<% end -%>
