diff --git a/templates/horizon_apache_ports.conf.j2 b/templates/horizon_apache_ports.conf.j2 index a022348e..3c32de37 100644 --- a/templates/horizon_apache_ports.conf.j2 +++ b/templates/horizon_apache_ports.conf.j2 @@ -1,5 +1,6 @@ # {{ ansible_managed }} -{% for horizon_listen_port in horizon_listen_ports.values() %} -Listen {{ horizon_bind_address }}:{{ horizon_listen_port }} -{% endfor %} +# We place a blank file here +# Listen commands happen inside the individual VHost files +# This allows for multiple services VHosts to exist without +# overwriting Listen lines. diff --git a/templates/openstack_dashboard.conf.j2 b/templates/openstack_dashboard.conf.j2 index 194de591..f2c7df13 100644 --- a/templates/openstack_dashboard.conf.j2 +++ b/templates/openstack_dashboard.conf.j2 @@ -1,5 +1,9 @@ # {{ ansible_managed }} +{% for horizon_listen_port in horizon_listen_ports.values() %} +Listen {{ horizon_bind_address }}:{{ horizon_listen_port }} +{% endfor %} + # If horizon is being served via SSL from this web server, # then we must redirect HTTP requests to HTTPS. {% if (horizon_enable_ssl | bool) and not (horizon_external_ssl | bool) %}