ProxyPass directive fails on IPv6 address:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux