18 lines
452 B
Text
18 lines
452 B
Text
|
# {{ ansible_managed }}
|
||
|
|
||
|
{% if instance.alias is defined %}
|
||
|
{% for alias in instance.alias %}
|
||
|
ServerAlias {{ alias }}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
|
||
|
{% if item.config.hiddenservice is defined and item.config.hiddenservice %}
|
||
|
ServerAlias {{ hiddenservice_address.stdout }}
|
||
|
|
||
|
<IfModule mod_headers.c>
|
||
|
<If "%{SERVER_NAME} == '{{ item.name }}'">
|
||
|
Header set Onion-Location "http://{{ hiddenservice_address.stdout }}"
|
||
|
</If>
|
||
|
</IfModule>
|
||
|
{% endif %}
|