On 14/10/2012 10:08, Luigi Rosa wrote:> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
> I have a CentOS 6 box with a single IPv6 and a /64 IPv6
>
> I would like to have on the same box a name-based virtual host of Apache
with
> IPv4 and an IP-based virtual host with IPv6.
>
> The only solution I have found so far is to run two instances of Apache,
one
> on IPv4 and the other on IPv6.
>
> In your opinion, are there other solutions to this problem?
>
>
> Thanks.
>
>
> Ciao,
> luigi
>
> - --
> /
> +--[Luigi Rosa]--
> \
>
> If you stick your head in the sand, one thing is for sure,
> you're gonna get your rear kicked.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
>
> iEYEARECAAYFAlB6cvoACgkQ3kWu7Tfl6ZS57QCbBMVp2TELaOuinaXFQk9hlAxO
> lyoAnjy7+ztuXcG4kShXatuO16DsG7nS
> =FLer
> -----END PGP SIGNATURE-----
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
Luigi,
Try something like this:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /web/content/ipall.domain.com/html
<Directory "/web/content/ipall.domain.com/html/">
</Directory>
</VirtualHost>
<VirtualHost [2a00:1450:4013:c00::65]:80>
DocumentRoot /web/content/ipv6.domain.com/html
<Directory "/web/content/ipv6.domain.com/html/">
</Directory>
</VirtualHost>
<VirtualHost 72.232.194.162:80>
DocumentRoot /web/content/ipv4.domain.com/html
<Directory "/web/content/ipv4.domain.com/html/">
</Directory>
</VirtualHost>