Skip to main content

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

  1. Go to your project → ServicesSecurity tab.

  2. Click NGINX Configuration › Show config.

Screenshot 2025-05-14 at 15.16.43.png

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.)

Screenshot 2025-05-14 at 15.35.26.png

Click Apply & Restart. NGINX reloads and your server is now ready to serve HTTPS traffic over IPv6.