瀏覽代碼

Merge pull request #220 from noelmcloughlin/issue122

Do not add ServerAlias unless defined
master
N 6 年之前
父節點
當前提交
7e66b260e4
No account linked to committer's email address
共有 5 個文件被更改,包括 5 次插入5 次删除
  1. +1
    -1
      apache/vhosts/minimal.tmpl
  2. +1
    -1
      apache/vhosts/proxy.tmpl
  3. +1
    -1
      apache/vhosts/redirect.tmpl
  4. +1
    -1
      apache/vhosts/standard.tmpl
  5. +1
    -1
      pillar.example

+ 1
- 1
apache/vhosts/minimal.tmpl 查看文件

@@ -9,7 +9,7 @@
'port': site.get('port', '80'),

'ServerName': sitename,
'ServerAlias': site.get('ServerAlias', 'www.{0}'.format(sitename)),
'ServerAlias': site.get('ServerAlias', ''),

'ServerAdmin': site.get('ServerAdmin', 'webmaster@{0}'.format(sitename)),


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

@@ -9,7 +9,7 @@
'port': site.get('port', '80'),

'ServerName': sitename,
'ServerAlias': site.get('ServerAlias', 'www.{0}'.format(sitename)),
'ServerAlias': site.get('ServerAlias', ''),

'ServerAdmin': site.get('ServerAdmin', 'webmaster@{0}'.format(sitename)),


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

@@ -10,7 +10,7 @@
'port': site.get('port', '80'),

'ServerName': sitename,
'ServerAlias': site.get('ServerAlias', 'www.{0}'.format(sitename)),
'ServerAlias': site.get('ServerAlias', ''),

'ServerAdmin': site.get('ServerAdmin', 'webmaster@{0}'.format(sitename)),


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

@@ -9,7 +9,7 @@
'port': site.get('port', '80'),

'ServerName': sitename,
'ServerAlias': site.get('ServerAlias', 'www.{0}'.format(sitename)),
'ServerAlias': site.get('ServerAlias', ''),

'ServerAdmin': site.get('ServerAdmin', 'webmaster@{0}'.format(sitename)),


+ 1
- 1
pillar.example 查看文件

@@ -62,7 +62,7 @@ apache:
exclude_listen_directive: True # Do not add a Listen directive in httpd.conf

ServerName: example.com # uses the unique ID above unless specified
ServerAlias: www.example.com
#ServerAlias: www.example.com # Do not add ServerAlias unless defined

ServerAdmin: webmaster@example.com


Loading…
取消
儲存