ipv4 & ipv6 Virtual Hosting - address in use

mikiso nginx-forum at nginx.us
Thu Oct 13 13:56:41 UTC 2011


Hi All,
I'm a newbie to nginx and facing similar problem  in that I cannot bind
IPv6 address (link local or global):

My nginx.conf is like this:

mail {
#    auth_http                  127.0.0.1:8888/cgi-bin/auth.pl;
#    auth_http                  127.0.0.1:8888/auth.pl;
    auth_http                   127.0.0.1:8888/popproxy/auth;
    auth_http_header            X-Auth-Domain "a-sya.com";
    auth_http_header            X-PopProxy-Secret "popproxy";
#    auth_http_header           X-Auth-Domain "ngm1.ocn-test.ne.jp";
    auth_http_timeout           15000ms;
#    after_auth_http            127.0.0.1:8888/popproxy-auth/;
    pop3_auth                   plain;
    pop3_auth                   apop;
    pop3_auth                   cram-md5;

    proxy_pass_error_message    on;
    server {
        listen          10110;
        listen          127.0.0.1:10110;
        listen          [::]:10899;
        # link local address
        #listen          [fe80::20c:29ff:fe86:7e4d]:10499;      ***1
        # global address
        #listen          [fd41:28b7:be11:0:20c:29ff:fe86:7e4d]:10119;   
   ***2
        protocol        pop3;
        server_name     localhost;
        proxy           on;
    }
}

If I uncomments the line marked "***1" , the following error occurs:
nginx: [emerg] bind() to [fe80::20c:29ff:fe86:7e4d]:10499 failed (22:
Invalid argument)
If I uncomments the line marked "***2", the following error occurs:
nginx: [emerg] bind() to [fd41:28b7:be11:0:20c:29ff:fe86:7e4d]:10119
failed (99: Cannot assign requested address)

Could you tell me why these errors occur? 
I think simply I forget some important configuration though..

Thanks and regards,
Soichiro MIKI



Maxim Dounin Wrote:

> 
> Could you please provide *full config* which
> triggers the problem?  
> In particular, full list of server{} blocks with
> their "listen" 
> directives.
> 
> Maxim Dounin

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,154862,216653#msg-216653



More information about the nginx mailing list