Using Apache 2.4 on Ubuntu, I have the following in ports.conf:
Listen XX.73.44.57:80
Listen [2001:XX:0:2c38::39]:80
<IfModule ssl_module>
Listen XX.73.44.57:443
Listen [2001:XX:0:2c38::39]:443
</IfModule>
<IfModule mod_gnutls.c>
Listen XX.73.44.57:443
Listen [2001:XX:0:2c38::39]:443
</IfModule>
I'd like to have the following in my server configs:
<VirtualHost *:80>
but that doesn't seem to work properly as the hosts don't respond. I've also tried:
<VirtualHost *:80 [::]:80>
The following works:
<VirtualHost [2001:XX:0:2c38::39]:80 XX.73.44.57:80>
but I'd prefer a wildcard. Do I have to give the IP addresses explicitly?
<VirtualHost *:80>
doesn't work? It works for me along withListen [::]:80
.