fix docroot
This commit is contained in:
parent
5174fc08af
commit
d11cc63481
1 changed files with 4 additions and 4 deletions
|
@ -9,8 +9,8 @@
|
|||
ServerAlias {% for alias in item.server_aliases %}{{ alias }} {% endfor %}
|
||||
{% endif %}
|
||||
|
||||
## Directories, there should at least be a declaration for {{ item.docroot }}/
|
||||
<Directory "{{ item.docroot }}/">
|
||||
## Directories, there should at least be a declaration for {{ item.docroot | default('/var/www/{{ item.vhostname }}') }}/
|
||||
<Directory "{{ item.docroot | default('/var/www/{{ item.vhostname }}') }}/">
|
||||
Options +FollowSymlinks
|
||||
AllowOverride All
|
||||
</Directory>
|
||||
|
@ -37,11 +37,11 @@
|
|||
|
||||
|
||||
{% if item.docroot %} ## Vhost docroot
|
||||
DocumentRoot "{{ item.docroot|default("/var/www/{{ item.vhostname }}") }}/"
|
||||
DocumentRoot "{{ item.docroot | default("/var/www/{{ item.vhostname }}") }}/"
|
||||
|
||||
## Directories, there should at least be a declaration for {{ item.docroot }}/
|
||||
|
||||
<Directory "{{ item.docroot }}/">
|
||||
<Directory "{{ item.docroot | default('/var/www/{{ item.vhostname }}') }}/">
|
||||
{% if item.root_options is defined %}
|
||||
Options {% for option in item.root_options %}{{ option }} {% endfor %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue