How to setup NGINX reverse proxy for proxying multiple subdomains with ipv4 and ipv6


I asked nearly any tutorial about an answer for my specific question. I also asked in serveral communities for an answer. The only answer I got was: “we do not use ipv6 and NGINX proxy manager. That’s quite frustrating…

All of my services are reachable via ip4 as well as ip6. But when I’m setting up NPM for proxying them only ip4 is working… There has to be a way to proxy the ip4 and ip6 addresses for the same subdomain…

Also, how to enable TLS1.3 in NPM?

Is there anyone who can answer me that question?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
July 20, 2023

Hi there,

Setting up NGINX for IPv6 is fairly straightforward, although before starting you need to make sure that you’ve actually enabled IPv6 on your Droplet as described here:

After that you can verify that this is actually enabled with:

ip addr show | grep inet6

After that to and IPv6, inside each Nginx server block, add:

listen 80;
listen [::]:80;

This listens to both IPv4 and IPv6. For more information you can check out the official docs here:

You can do the same thing for port 443 as well.

Regarding your second question, to enable TLS 1.3 by adding it to the ssl_protocols directive in the NGINX server block for port 443:

    ssl_protocols TLSv1.2 TLSv1.3;

After making the chages, test the configuration with sudo nginx -t and if there are no errors, restart NGINX with sudo systemctl restart nginx.



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel