Hi Rhys,
hope you're doing well.
Yes, it's definitely possible. The following code snippet does the show:
server {
listen [::]:80 default ipv6only=on;
location / { proxy_pass http://127.0.0.1:8081; }
}
server {
listen 127.0.0.1:8081;
location / { return 200 "OK, 127.0.0.1:8081\n"; }
}
% curl 127.0.0.1:8081
OK, 127.0.0.1:8081
% curl -g -6 "http://[::1]/"
OK, 127.0.0.1:8081
On Wed, Dec 11, 2019 at 11:52:42AM -1000, Rhys Ferris wrote:
> Not sure if this is possible. I am trying to enable dual stack for my server,
> which also proxies several other internal services. Nginx is receiving
> requests on IPv6 fine, but some of my services are IPv4 only. Can Nginx
> receive the request on IPv6, retrieve the content from IPv4 internally, and
> the. Serve the context over IPv6?
>
> Thanks
>
> Rhys Ferris
> ??? 808-257-2252
> ???? 757-848-7278
> ???? [email protected]
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx