mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 18:23:40 +02:00
15 lines
389 B
Django/Jinja
15 lines
389 B
Django/Jinja
{% if element_web_alias is defined %}
|
|
Alias /{{ element_web_alias }} {{ element_root_dir }}/web
|
|
{% else %}
|
|
# No alias defined, create a vhost to access it
|
|
{% endif %}
|
|
<Directory {{ element_root_dir }}/web>
|
|
AllowOverride None
|
|
Options None
|
|
{% if element_allowed_ip is defined %}
|
|
Require ip {{ element_allowed_ip | join(' ') }}
|
|
{% else %}
|
|
Require all granted
|
|
{% endif %}
|
|
</Directory>
|