fix docroot

This commit is contained in:
Antonio J. Delgado 2022-12-08 13:49:38 +02:00
parent 5174fc08af
commit d11cc63481

View file

@ -9,8 +9,8 @@
ServerAlias {% for alias in item.server_aliases %}{{ alias }} {% endfor %} ServerAlias {% for alias in item.server_aliases %}{{ alias }} {% endfor %}
{% endif %} {% endif %}
## Directories, there should at least be a declaration for {{ item.docroot }}/ ## Directories, there should at least be a declaration for {{ item.docroot | default('/var/www/{{ item.vhostname }}') }}/
<Directory "{{ item.docroot }}/"> <Directory "{{ item.docroot | default('/var/www/{{ item.vhostname }}') }}/">
Options +FollowSymlinks Options +FollowSymlinks
AllowOverride All AllowOverride All
</Directory> </Directory>
@ -41,7 +41,7 @@
## Directories, there should at least be a declaration for {{ item.docroot }}/ ## 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 %} {% if item.root_options is defined %}
Options {% for option in item.root_options %}{{ option }} {% endfor %} Options {% for option in item.root_options %}{{ option }} {% endfor %}
{% endif %} {% endif %}