Skip to content
Snippets Groups Projects
Unverified Commit ac7e71bf authored by Niels Abspoel's avatar Niels Abspoel Committed by GitHub
Browse files

Merge pull request #228 from ze42/docroot_sitename

DocumentRoot: fallback to SiteName like templates
parents 32f92e8a 0ed8f9a9
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ include: ...@@ -4,7 +4,7 @@ include:
- apache - apache
{% for id, site in salt['pillar.get']('apache:sites', {}).items() %} {% 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 }}: {{ id }}:
file: file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment