X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d168351c5b49bd9689de106601c7267a19b7985b..e3d069c5375bb660a0a9e18a035baa5e6536a942:/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 588fcee5c..aa6d4e5e2 100644
--- a/cookbooks/apache/templates/default/ports.conf.erb
+++ b/cookbooks/apache/templates/default/ports.conf.erb
@@ -1,15 +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