No automatic listener for port *
The formula currently adds a Listen directive for the port '*' if any configured vhost is configured to listen on :* which does not work and instead prevents apache from starting. It is possible to prevent this by setting the exclude_listen_directive pillar to True but this is a manual workaround. Instead, this commit excludes :* Listeners automatically.
This commit is contained in:
parent
4bba8862ab
commit
79673343a5
@ -9,7 +9,7 @@
|
|||||||
{%- set interfaces = site.get('interface', '*').split() %}
|
{%- set interfaces = site.get('interface', '*').split() %}
|
||||||
{%- set port = site.get('port', 80) %}
|
{%- set port = site.get('port', 80) %}
|
||||||
{%- for interface in interfaces %}
|
{%- for interface in interfaces %}
|
||||||
{%- if not site.get('exclude_listen_directive', False) %}
|
{%- if not site.get('exclude_listen_directive', False) and not port == '*' %}
|
||||||
{%- set listen_directive = interface ~ ':' ~ port %}
|
{%- set listen_directive = interface ~ ':' ~ port %}
|
||||||
{%- if listen_directive not in listen_directives %}
|
{%- if listen_directive not in listen_directives %}
|
||||||
{%- do listen_directives.append(listen_directive) %}
|
{%- do listen_directives.append(listen_directive) %}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
{%- set interfaces = site.get('interface', '*').split() %}
|
{%- set interfaces = site.get('interface', '*').split() %}
|
||||||
{%- set port = site.get('port', 80) %}
|
{%- set port = site.get('port', 80) %}
|
||||||
{%- for interface in interfaces %}
|
{%- for interface in interfaces %}
|
||||||
{%- if not site.get('exclude_listen_directive', False) %}
|
{%- if not site.get('exclude_listen_directive', False) and not port == '*' %}
|
||||||
{%- set listen_directive = interface ~ ':' ~ port %}
|
{%- set listen_directive = interface ~ ':' ~ port %}
|
||||||
{%- if listen_directive not in listen_directives %}
|
{%- if listen_directive not in listen_directives %}
|
||||||
{%- do listen_directives.append(listen_directive) %}
|
{%- do listen_directives.append(listen_directive) %}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
{%- set interfaces = site.get('interface', '*').split() %}
|
{%- set interfaces = site.get('interface', '*').split() %}
|
||||||
{%- set port = site.get('port', 80) %}
|
{%- set port = site.get('port', 80) %}
|
||||||
{%- for interface in interfaces %}
|
{%- for interface in interfaces %}
|
||||||
{%- if not site.get('exclude_listen_directive', False) %}
|
{%- if not site.get('exclude_listen_directive', False) and not port == '*' %}
|
||||||
{%- set listen_directive = interface ~ ':' ~ port %}
|
{%- set listen_directive = interface ~ ':' ~ port %}
|
||||||
{%- if listen_directive not in listen_directives %}
|
{%- if listen_directive not in listen_directives %}
|
||||||
{%- do listen_directives.append(listen_directive) %}
|
{%- do listen_directives.append(listen_directive) %}
|
||||||
|
@ -50,7 +50,7 @@ ServerRoot "{{ apache.get('serverroot', '/etc/httpd') }}"
|
|||||||
{%- set interfaces = site.get('interface', '*').split() %}
|
{%- set interfaces = site.get('interface', '*').split() %}
|
||||||
{%- set port = site.get('port', 80) %}
|
{%- set port = site.get('port', 80) %}
|
||||||
{%- for interface in interfaces %}
|
{%- for interface in interfaces %}
|
||||||
{%- if not site.get('exclude_listen_directive', False) %}
|
{%- if not site.get('exclude_listen_directive', False) and not port == '*' %}
|
||||||
{%- set listen_directive = interface ~ ':' ~ port %}
|
{%- set listen_directive = interface ~ ':' ~ port %}
|
||||||
{%- if listen_directive not in listen_directives %}
|
{%- if listen_directive not in listen_directives %}
|
||||||
{%- do listen_directives.append(listen_directive) %}
|
{%- do listen_directives.append(listen_directive) %}
|
||||||
|
Loading…
Reference in New Issue
Block a user