Listening for both IPv6 and IPv4 in apache 2.2
I'm using apache2.2
How to listen both Ipv6 and Ipv4?
or
only Ipv6 / only Ipv4
Apache supports multiple Listen options:
Listen 192.170.2.1:80
Listen 192.170.2.5:8000
IPv6 addresses must be surrounded in square brackets, as in the following example:
Listen [2001:db8::a00:20ff:fea7:ccea]:80
What l1x said, plus, this is how you do both in a vhost:
<VirtualHost 74.208.184.120:80 [2001:470:c083:1::1]:80>
Preferably with your IPs instead of mine :)