Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1143d0a commit 1486a67Copy full SHA for 1486a67
source/_docs/ecosystem/nginx.markdown
@@ -89,8 +89,7 @@ http {
89
server_name example.com;
90
91
# These shouldn't need to be changed
92
- listen 80 default_server;
93
- listen [::]:80 default_server ipv6only=on;
+ listen [::]:80 default_server ipv6only=off;
94
return 301 https://$host$request_uri;
95
}
96
@@ -110,7 +109,7 @@ http {
110
109
111
112
113
- 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
114
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
115
ssl on;
116
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
0 commit comments