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的,那么就要在配置文件中加入以下代码:
fastcgi_param HTTPS on; #attention!#

我的微信
我的微信
微信扫一扫
评论