Move Listen definition to VHosts

In order to avoid conflicts with other applications running Apache,
like keystone, we avoid using ports.conf for Listen and using VHost files
for this purpose.

We place same dummy template as keystone does for upgrade purposes.

Change-Id: I8a5ef5234b8aee1e7b3517e9543d2af0a84e90ce
This commit is contained in:
Dmitriy Rabotyagov 2022-02-09 13:49:21 +02:00
parent aa976a0544
commit 41f3380691
2 changed files with 8 additions and 3 deletions

View File

@ -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.

View File

@ -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) %}