From 1486a672f77e5aa43c75caad5d2ba3dd5e17b355 Mon Sep 17 00:00:00 2001 From: "Madd.is" Date: Mon, 24 Apr 2017 23:45:23 +0200 Subject: [PATCH] bind HTTPS to ipv6 port in NGINX example configuration (#2492) * bind HTTPS to ipv6 port * let NGINX bind to ports on IPv4 and 6, add http2 note --- source/_docs/ecosystem/nginx.markdown | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/_docs/ecosystem/nginx.markdown b/source/_docs/ecosystem/nginx.markdown index b3305a9de34..05e71339d0f 100644 --- a/source/_docs/ecosystem/nginx.markdown +++ b/source/_docs/ecosystem/nginx.markdown @@ -89,8 +89,7 @@ http { server_name example.com; # These shouldn't need to be changed - listen 80 default_server; - listen [::]:80 default_server ipv6only=on; + listen [::]:80 default_server ipv6only=off; return 301 https://$host$request_uri; } @@ -110,7 +109,7 @@ http { # These shouldn't need to be changed - listen 443 default_server; + listen [::]:443 default_server ipv6only=off; # if your nginx version is >= 1.9.5 you can also add the "http2" flag here add_header Strict-Transport-Security "max-age=31536000; includeSubdomains"; ssl on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2;