Skip to main content

How to configure NGINX to Listen on IPv6

Some cloud images ship with IPv6 already enabled at the OS level, but NGINX still has to be told to listen on an IPv6 socket.
This guide shows how to add that single listen [::]:443 ssl http2; directive in the Elest.io dashboard so your site becomes reachable via AAAA records.

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