Browse Source

Merge pull request #228 from ze42/docroot_sitename

DocumentRoot: fallback to SiteName like templates
tags/v0.37.4
Niels Abspoel 6 years ago
parent
commit
ac7e71bf56
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      apache/vhosts/standard.sls

+ 1
- 1
apache/vhosts/standard.sls View File

@@ -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:

Loading…
Cancel
Save