Welcome! Log In Create A New Profile

Advanced

ipv6 support for upstream server

Matthias Rieber
May 27, 2010 05:10PM
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


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

ipv6 support for upstream server

Matthias Rieber May 27, 2010 05:10PM

Re: ipv6 support for upstream server

Maxim Dounin May 28, 2010 05:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready