Nginx重定向:
server { listen 80; server_name friend.kper.net; rewrite ^/(.*) https://friend.kper.net/$1 permanent; }
在实际测试过程中,发现如果直接访问http://kper.net/index.php是跳转不到https://kper.net/index.php的,那么就要在配置文件中加入以下代码:文章源自科派人 | PlanB的博客科派人-https://kper.net/126.html
fastcgi_param HTTPS on; #attention!#
文章源自科派人 | PlanB的博客科派人-https://kper.net/126.html 文章源自科派人 | PlanB的博客科派人-https://kper.net/126.html
我的微信
微信扫一扫

PlanXX
微信号已复制
微信公众号
微信扫一扫

PlanXX
公众号已复制