How to configure NGINX to Listen on IPv6
SomeIPv6 cloudis imagesquickly shipbecoming withstandard. IPv6If your VM already enabledsupports atit, theyou OSjust level, but NGINX still hasneed to betell toldNGINX to listen on an IPv6 socket.
This guide showswalks howyou tothrough addadding thatone single line—listen [::]:443 ssl http2;
directive —in the Elest.io dashboard so your site becomesworks reachableover via AAAA records.IPv6.
(If IPv6 is disabled on the VM itself, start with the “Enable IPv6 on your VM” article and come back here.)
1. Open the dashboard
-
Go to your project → Services → Security tab.
-
Click NGINX Configuration › Show config.
2 . Edit the server block for your domain
Choose your domain and find edit the NGINX config then find
listen 443 ssl http2;
Add the IPv6 line directly beneath:
listen 443 ssl http2;
listen [::]:443 ssl http2;
(Keep the original IPv4 line—now NGINX will listen on both stacks.)
Click Apply & Restart. NGINX reloads and your server is now ready to serve HTTPS traffic over IPv6.