Re: error with ipv6 backend www server

From: Willy Tarreau <w#1wt.eu>
Date: Wed, 15 Jun 2011 09:12:00 +0200


Hi,

On Wed, Jun 15, 2011 at 02:42:58PM +0800, Delta Yeh wrote:
> Hi,
> I run into error when I try to proxy http request to an ipv6 www
> server, the error is :
> debian:~/v6# ./haproxy -f v6.cfg
> [ALERT] 165/142945 (23488) : parsing [v6.cfg:28] : Unknown host in
> '3ffe:ffff:21da:7:3c06:7c4c:8215:2'
> [ALERT] 165/142945 (23488) : Error(s) found in configuration file : v6.cfg
> [ALERT] 165/142946 (23488) : Fatal errors found in configuration.

(...)
> server 2008 3ffe:ffff:21da:7:3c06:7c4c:8215:2 80

The server address syntax is :

     server <name> <ip>:<port>

So you should have a colon and not a space before '80' :

    3ffe:ffff:21da:7:3c06:7c4c:8215:2:80

Note that the syntax is non-ambiguous because the last colon is mandatory before the port, so anything which is before the last colon is the address.

Willy Received on 2011/06/15 09:12

This archive was generated by hypermail 2.2.0 : 2011/06/15 09:15 CEST