comparison host/startup/nginx/nginx.ssl.conf.luan @ 1776:da85925fea9c

listen ipv6
author Vadim Filimonov <fffilimonov@yandex.ru>
date Fri, 28 Jul 2023 11:53:03 +0300
parents 63ab02188e9d
children
comparison
equal deleted inserted replaced
1775:e380ab6c0c78 1776:da85925fea9c
2 2
3 %> 3 %>
4 server { 4 server {
5 server_name <%=domain%>; 5 server_name <%=domain%>;
6 listen 80; 6 listen 80;
7 listen [::]:80;
7 return 301 https://$http_host$request_uri; 8 return 301 https://$http_host$request_uri;
8 } 9 }
9 10
10 server { 11 server {
11 server_name <%=domain%>; 12 server_name <%=domain%>;
12 listen 443 ssl; 13 listen 443 ssl;
14 listen [::]:443 ssl;
13 15
14 if ($host != $server_name) { 16 if ($host != $server_name) {
15 return 301 http://$http_host$request_uri; 17 return 301 http://$http_host$request_uri;
16 } 18 }
17 19