diff --git a/apache/vhosts/minimal.tmpl b/apache/vhosts/minimal.tmpl index b74e059..11ca0c4 100644 --- a/apache/vhosts/minimal.tmpl +++ b/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)), diff --git a/apache/vhosts/proxy.tmpl b/apache/vhosts/proxy.tmpl index 0567eb3..4f45ecf 100644 --- a/apache/vhosts/proxy.tmpl +++ b/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)), diff --git a/apache/vhosts/redirect.tmpl b/apache/vhosts/redirect.tmpl index 3e1d13b..3a3759c 100644 --- a/apache/vhosts/redirect.tmpl +++ b/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)), diff --git a/apache/vhosts/standard.tmpl b/apache/vhosts/standard.tmpl index 04cb6ec..af6c75e 100644 --- a/apache/vhosts/standard.tmpl +++ b/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)), diff --git a/pillar.example b/pillar.example index 35d0ee5..d14304f 100644 --- a/pillar.example +++ b/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