2023-05-21 16:01:21 +02:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
2023-05-21 23:01:31 +02:00
|
|
|
{% if item.alias is defined %}
|
|
|
|
{% for alias in item.alias %}
|
2023-05-21 16:01:21 +02:00
|
|
|
ServerAlias {{ alias }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
2023-10-22 20:29:30 +02:00
|
|
|
{% if item.hiddenservice is defined and item.hiddenservice %}
|
2023-05-21 16:01:21 +02:00
|
|
|
ServerAlias {{ hiddenservice_address.stdout }}
|
|
|
|
|
|
|
|
<IfModule mod_headers.c>
|
|
|
|
<If "%{SERVER_NAME} == '{{ item.name }}'">
|
|
|
|
Header set Onion-Location "http://{{ hiddenservice_address.stdout }}"
|
|
|
|
</If>
|
|
|
|
</IfModule>
|
|
|
|
{% endif %}
|