瀏覽代碼

Add listen directive to vhosts templates and remove ports.conf

tags/v0.37.4
a.genus 9 年之前
父節點
當前提交
cac7545070
共有 4 個文件被更改,包括 11 次插入0 次删除
  1. +5
    -0
      apache/debian_full.sls
  2. +2
    -0
      apache/vhosts/proxy.tmpl
  3. +2
    -0
      apache/vhosts/redirect.tmpl
  4. +2
    -0
      apache/vhosts/standard.tmpl

+ 5
- 0
apache/debian_full.sls 查看文件

@@ -37,4 +37,9 @@ a2dissite 000-default{{ apache.confext }}:
- require:
- pkg: apache

/etc/apache2/ports.conf:
file.absent:
- require:
- pkg: apache

{% endif %} #END: os = debian

+ 2
- 0
apache/vhosts/proxy.tmpl 查看文件

@@ -22,6 +22,8 @@
'ProxyRoute': site.get('ProxyRoute', {}),
} %}

Listen {{ vals.interface }}:{{ vals.port }}

<VirtualHost {{ vals.interface }}:{{ vals.port }}>
ServerName {{ vals.ServerName }}
{% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %}

+ 2
- 0
apache/vhosts/redirect.tmpl 查看文件

@@ -23,6 +23,8 @@

} %}

Listen {{ vals.interface }}:{{ vals.port }}

<VirtualHost {{ vals.interface }}:{{ vals.port }}>
ServerName {{ vals.ServerName }}
{% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %}

+ 2
- 0
apache/vhosts/standard.tmpl 查看文件

@@ -37,6 +37,8 @@
},
} %}

Listen {{ vals.interface }}:{{ vals.port }}

<VirtualHost {{ vals.interface }}:{{ vals.port }}>
ServerName {{ vals.ServerName }}
{% if site.get('ServerAlias') != False %}ServerAlias {{ vals.ServerAlias }}{% endif %}

Loading…
取消
儲存