X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/350c97f6401f0d8d656007b132f27a11ac46a09c..c3eaabdeabe865ec028693cbb4d77a0f7a88a90a:/cookbooks/apache/templates/default/ports.conf.erb
diff --git a/cookbooks/apache/templates/default/ports.conf.erb b/cookbooks/apache/templates/default/ports.conf.erb
index dbb43568f..aa6d4e5e2 100644
--- a/cookbooks/apache/templates/default/ports.conf.erb
+++ b/cookbooks/apache/templates/default/ports.conf.erb
@@ -1,17 +1,23 @@
# DO NOT EDIT - This file is being maintained by Chef
# Listen on port 80
+<% if node[:lsb][:release].to_f < 14.04 -%>
NameVirtualHost *:80
+<% end -%>
Listen <%= node[:apache][:listen_address] %>:80
# Listen on port 443 if mod_ssl is enabled
+ <% if node[:lsb][:release].to_f < 14.04 -%>
NameVirtualHost *:443
+ <% end -%>
Listen <%= node[:apache][:listen_address] %>:443
# Listen on port 443 if mod_gnutls is enabled
+ <% if node[:lsb][:release].to_f < 14.04 -%>
NameVirtualHost *:443
+ <% end -%>
Listen <%= node[:apache][:listen_address] %>:443