change https redirect
This commit is contained in:
parent
a1fd42c17b
commit
66d0c569bb
1 changed files with 1 additions and 15 deletions
|
@ -1,20 +1,6 @@
|
|||
server {
|
||||
|
||||
listen 80;
|
||||
server_name _;
|
||||
listen [::]:80;
|
||||
server_name _;
|
||||
|
||||
if ($host = http://$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;
|
||||
}
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
Loading…
Add table
Reference in a new issue