在 nginx.conf 配置文件中添加如下配置进行 http -> https 跳转
server {
listen 80;
server_name example.org;
return 301 https://$server_name$request_uri;
}
**解决方法:将 301 跳转修改为 307 **
server {
listen 80;
server_name example.org;
return 307 https://$server_name$request_uri;
}