nginx get http_x_forwarded_proto to return
#根据协议类型来强跳https
if ( $http_x_forwarded_proto = "http" ){
return 301 https://$http_host$request_uri;
}
#根据协议类型来强跳https
if ( $http_x_forwarded_proto = "http" ){
return 301 https://$http_host$request_uri;
}