🐛 Fix template for missing IPv6 on apache-docker-forward
This commit is contained in:
parent
346cc41148
commit
31fc12dfb2
1 changed files with 8 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
||||||
|
{% if 'address' in ansible_default_ipv6 %}
|
||||||
<VirtualHost {{ ansible_default_ipv4.address }}:80 [{{ ansible_default_ipv6.address }}]:80>
|
<VirtualHost {{ ansible_default_ipv4.address }}:80 [{{ ansible_default_ipv6.address }}]:80>
|
||||||
|
{% else %}
|
||||||
|
<VirtualHost {{ ansible_default_ipv4.address }}:80>
|
||||||
|
{% endif %}
|
||||||
ServerAdmin {{ server_admin }}
|
ServerAdmin {{ server_admin }}
|
||||||
ServerName {{ site_name }}
|
ServerName {{ site_name }}
|
||||||
ServerAlias {{ site_name }}
|
ServerAlias {{ site_name }}
|
||||||
|
@ -15,7 +19,11 @@
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}>
|
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}>
|
||||||
|
{% if 'address' in ansible_default_ipv6 %}
|
||||||
<VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address }}]:443>
|
<VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address }}]:443>
|
||||||
|
{% else %}
|
||||||
|
<VirtualHost {{ ansible_default_ipv4.address }}:443>
|
||||||
|
{% endif %}
|
||||||
ServerAdmin {{ server_admin }}
|
ServerAdmin {{ server_admin }}
|
||||||
ServerName {{ site_name }}
|
ServerName {{ site_name }}
|
||||||
ServerAlias {{ site_name }}
|
ServerAlias {{ site_name }}
|
||||||
|
|
Loading…
Reference in a new issue