Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

How to setup IPv6 on nginx server centos 7

$
0
0
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/

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>