Add IPv6 addresses to HTTP virtual hosts

This commit is contained in:
Stefan Haun 2020-12-06 13:22:54 +01:00
parent 55eaa92f6e
commit 28a372eaa2
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
<VirtualHost {{ ansible_default_ipv4.address }}:80> <VirtualHost {{ ansible_default_ipv4.address }}:80 [{{ ansible_default_ipv6.address }}]:80>
ServerAdmin {{ server_admin }} ServerAdmin {{ server_admin }}
ServerName {{ site_name }} ServerName {{ site_name }}
ServerAlias {{ site_name }} ServerAlias {{ site_name }}
@ -14,7 +14,7 @@
</ifmodule> </ifmodule>
</VirtualHost> </VirtualHost>
<VirtualHost {{ ansible_default_ipv4.address }}:443> <VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address }}]:80>
ServerAdmin {{ server_admin }} ServerAdmin {{ server_admin }}
ServerName {{ site_name }} ServerName {{ site_name }}
ServerAlias {{ site_name }} ServerAlias {{ site_name }}

View file

@ -1,4 +1,4 @@
<VirtualHost {{ ansible_default_ipv4.address }}:80> <VirtualHost {{ ansible_default_ipv4.address }}:80 [{{ ansible_default_ipv6.address }}]:80>
ServerAdmin {{ server_admin }} ServerAdmin {{ server_admin }}
ServerName {{ site_name }} ServerName {{ site_name }}
ServerAlias {{ site_name }} ServerAlias {{ site_name }}
@ -14,7 +14,7 @@
</ifmodule> </ifmodule>
</VirtualHost> </VirtualHost>
<VirtualHost {{ ansible_default_ipv4.address }}:443> <VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address }}]:443>
ServerAdmin {{ server_admin }} ServerAdmin {{ server_admin }}
ServerName {{ site_name }} ServerName {{ site_name }}
ServerAlias {{ site_name }} ServerAlias {{ site_name }}