change https redirect

This commit is contained in:
Sergei Poljanski 2023-08-04 23:50:29 +03:00
parent a1fd42c17b
commit 66d0c569bb

View file

@ -1,20 +1,6 @@
server { server {
listen 80; listen 80;
server_name _;
listen [::]:80; listen [::]:80;
server_name _; server_name _;
if ($host = http://$host$request_uri) {
return 301 https://$host$request_uri; return 301 https://$host$request_uri;
}
if ($host = http://www.$host$request_uri) {
return 301 https://$host$request_uri;
}
location / {
try_files $uri $uri/ =404;
}
} }