ipv6 support for upstream server

Matthias Rieber ml-nginx at zu-con.org
Fri May 28 01:06:45 MSD 2010


Hello,

is IPv6 supported for upstream servers? I try to setup an ipv4 to ipv6 
proxy:

I configured it like this:

   server {
     listen 188.40.110.21:80;
     server_name foobar.de.ip4.zu-con.org;

     location / {
       proxy_pass http://[20a1:and:so:on::1]:80;
       proxy_set_header Host foobar.de;
       proxy_set_header X-Forwarded-For $remote_addr;
     }
   }

and the variation:

   server {
     listen 188.40.110.21:80;
     server_name foobar.de.ip4.zu-con.org;

     location / {
       proxy_pass http://foobar.de:80; #foobar.de has just a AAAA record
       proxy_set_header Host foobar.de;
       proxy_set_header X-Forwarded-For $remote_addr;
     }
   }

and also:

upstream _foobar {
   server [2000:and:so:on::1]:80;
}

   server {
     listen 188.40.110.21:80;
     server_name foobar.de.ip4.zu-con.org;

     location / {
       proxy_pass http://_foobar;
       proxy_set_header Host foobar.de;
       proxy_set_header X-Forwarded-For $remote_addr;
     }
   }

regards,

Matthias




More information about the nginx mailing list