Thought I should mention in case anyone else is having trouble:

It occurred to me right when I sent my email out that my version of Apache
might simply not support IPv6. Turns out I was right. It's weird that the
CentOS 6  bundled yum sources provide an IPv4 -only Apache but it is what
it is. Perhaps I will try to find a Fedora source for Apache 2.4.

Thanks,

Nader

On Sun, Jun 29, 2014 at 5:18 PM, Nader Zeid <nader.z...@gmail.com> wrote:

>
> I'm using Apache to front-end some servers listening on loopback but the
> ProxyPass directive doesn't like IPv6 addresses.
>
> I spin up a server on IPv6 address [::1]:8001, confirmed working using
> cURL and shown here on nestat:
>
> tcp        0      0 ::1:8001                    :::*
>  LISTEN      1348/./WebToolsTest
>
> I use the following ProxyPass directive:
>
> ProxyPass / http://[::1]:8001/
> ProxyPassReverse / http://[::1]:8001/
>
> However, when I try to connect using any HTTP client, I get the following
> error in logs:
>
> [Sun Jun 29 21:12:40 2014] [error] [client 24.228.250.155] proxy: DNS
> lookup failure for: ::1 returned by /
>
> When I switch everything to IPv4, i.e. bind the back end to 127.0.0.1:8001
> and switch ProxyPass, *everything* works fine.
>
> Why would mod_proxy accept IPv4 addresses but not IPv6? Why is it doing a
> DNS lookup on IPv6 addresses?
>
> Thanks,
>
> Nader
>
>

Reply via email to