diff --git a/apache/vhosts/standard.sls b/apache/vhosts/standard.sls index 678f3deeca8a6e28af6ecd96a7e4957a282d994b..719f3b5bfbe0f5e3ce1516c4e5078590ff39fd0c 100644 --- a/apache/vhosts/standard.sls +++ b/apache/vhosts/standard.sls @@ -4,7 +4,7 @@ include: - apache {% for id, site in salt['pillar.get']('apache:sites', {}).items() %} -{% set documentroot = site.get('DocumentRoot', '{0}/{1}'.format(apache.wwwdir, id)) %} +{% set documentroot = site.get('DocumentRoot', '{0}/{1}'.format(apache.wwwdir, site.get('ServerName', id))) %} {{ id }}: file: