Welcome! Log In Create A New Profile

Advanced

How to setup IPv6 on nginx server centos 7

Posted by nguaden 
How to setup IPv6 on nginx server centos 7
March 29, 2021 04:18AM
How to setup IPv6 on nginx server centos 7 easy.

Step 1. You have to config domain to ipv6 with record AAAA.
Step 2: Edit file nginx config with code (i using SSL with Let's Encrypt)

listen 80;
listen [2001:19f0:7001:3f17:5400:03ff:fe45:d87f]:80 ipv6only=on;

And

listen 443 ssl http2;
listen [2001:19f0:7001:3f17:5400:03ff:fe45:d87f]:443 ssl http2 ipv6only=on;

===========================================================

server {
listen 80;
listen [2001:19f0:7001:3f17:5400:03ff:fe45:d87f]:80 ipv6only=on;
server_name vlam.vn www.vlam.vn 45.77.8.189;
return 301 https://vlam.vn$request_uri;
}
server {
listen 443 ssl http2;
server_name www.vlam.vn;
return 301 https://vlam.vn$request_uri;
ssl_certificate /etc/nginx/auth-acme/vlam.vn/vlam.vn.crt;
ssl_certificate_key /etc/nginx/auth-acme/vlam.vn/vlam.vn.key;
ssl_trusted_certificate /etc/nginx/auth-acme/vlam.vn/vlam.vn.ca;
}
server {
listen 443 ssl http2;
listen [2001:19f0:7001:3f17:5400:03ff:fe45:d87f]:443 ssl http2 ipv6only=on;

===========================================================

I had test tracert from computer to IPV4 & IPV6, I see a difference, i think you should setup IPV6 now. Thank you so much, Test page https://vlam.vn/
Attachments:
open | download - ipv6.jpg (180.6 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready