Remove overlapping Listen directives on apache >= 2.4

As mentioned on the apache docs[0] having 2 overlapping
listen directories will cause the apache server to fail
with a fatal error. The seems like it was ignored on
earlier versions so we can use the version module to
change it based on the current apache version as to
not affect existing deployments

[0] https://httpd.apache.org/docs/2.4/es/bind.html

Change-Id: I8ce260e020375e93befa5e2e6df22eca0eaf9d07
This commit is contained in:
Itxaka 2019-03-21 15:11:02 +01:00
parent 3baeefdd37
commit 2ec91c4c3f
No known key found for this signature in database
GPG Key ID: 0FFB0E56C3539E24

View File

@ -59,8 +59,9 @@ network:
conf:
horizon:
apache: |
<IfVersion < 2.4>
Listen 0.0.0.0:{{ tuple "dashboard" "internal" "web" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
</IfVersion>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy