Remove breaking changes

This commit is contained in:
a.genus 2016-02-01 19:01:02 +03:00
parent c5987510b7
commit ba6679ef66
5 changed files with 7 additions and 17 deletions

View File

@ -37,9 +37,4 @@ a2dissite 000-default{{ apache.confext }}:
- require: - require:
- pkg: apache - pkg: apache
/etc/apache2/ports.conf:
file.absent:
- require:
- pkg: apache
{% endif %} #END: os = debian {% endif %} #END: os = debian

View File

@ -34,6 +34,10 @@
# together by including all remaining configuration files when starting up the # together by including all remaining configuration files when starting up the
# web server. # web server.
# #
# * ports.conf is always included from the main configuration file. It is
# supposed to determine listening ports for incoming connections which can be
# customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/ # * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
# directories contain particular configuration snippets which manage modules, # directories contain particular configuration snippets which manage modules,
# global configuration fragments, or virtual host configurations, # global configuration fragments, or virtual host configurations,
@ -138,6 +142,9 @@ LogLevel warn
IncludeOptional mods-enabled/*.load IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf IncludeOptional mods-enabled/*.conf
# Include list of ports to listen on
Include ports.conf
# Sets the default security model of the Apache2 HTTPD server. It does # Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www. # not allow access to the root filesystem outside of /usr/share and /var/www.

View File

@ -22,10 +22,6 @@
'ProxyRoute': site.get('ProxyRoute', {}), 'ProxyRoute': site.get('ProxyRoute', {}),
} %} } %}
{% for intf in vals.interfaces -%}
Listen {{ intf }}:{{ vals.port }}
{% endfor %}
<VirtualHost {%- for intf in vals.interfaces %} {{intf}}:{{ vals.port }}{% endfor -%}> <VirtualHost {%- for intf in vals.interfaces %} {{intf}}:{{ vals.port }}{% endfor -%}>
ServerName {{ vals.ServerName }} ServerName {{ vals.ServerName }}
{% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %} {% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %}

View File

@ -23,10 +23,6 @@
} %} } %}
{% for intf in vals.interfaces -%}
Listen {{ intf }}:{{ vals.port }}
{% endfor %}
<VirtualHost {%- for intf in vals.interfaces %} {{intf}}:{{ vals.port }}{% endfor -%}> <VirtualHost {%- for intf in vals.interfaces %} {{intf}}:{{ vals.port }}{% endfor -%}>
ServerName {{ vals.ServerName }} ServerName {{ vals.ServerName }}
{% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %} {% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %}

View File

@ -38,10 +38,6 @@
}, },
} -%} } -%}
{% for intf in vals.interfaces -%}
Listen {{ intf }}:{{ vals.port }}
{% endfor %}
<VirtualHost {% for intf in vals.interfaces %} {{intf}}:{{ vals.port }}{% endfor -%}> <VirtualHost {% for intf in vals.interfaces %} {{intf}}:{{ vals.port }}{% endfor -%}>
ServerName {{ vals.ServerName }} ServerName {{ vals.ServerName }}
{% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %} {% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %}