只需一步,快速开始
举报
夜桜 发表于 2019-1-28 12:51
阳光淡蓝 发表于 2019-1-28 13:17 谢谢,我也是这样只改了 旧服务器上原域名的.conf规则 在末尾直接加的这个。。。
aRNoLD 发表于 2019-1-28 13:47 你这个只能跳一半,即http老转到https新 你还需要一段代码用以完成https老转到https新
server { listen 443; #listen [::]:443 ssl spdy; server_name baidu.com www.baidu.com; return 301 https://www.newbaidu.com$request_uri; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/baidu.com;
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2025-11-27 07:38 , Processed in 0.091819 second(s), 9 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.