I'm using apache2.2

How to listen both Ipv6 and Ipv4?

or

only Ipv6 / only Ipv4

link|improve this question

39% accept rate
feedback

2 Answers

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
link|improve this answer
feedback

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 :)

link|improve this answer
Yeah, rite, if he wants vhosts. – Istvan Nov 4 '09 at 23:15
2  
I don't know when the last time I configured an apache instance that didn't have vhosts was, so I always assume it :) – Bill Weiss Nov 4 '09 at 23:21
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.