https怎么跳转到https

Lnmp如何利用conf规则从HTTPS跳转另外一个HTTPS

 

server {
listen 443 ssl;
server_name 163.com;
rewrite ^(.*) https://www.baidu.com$1 permanent;
ssl on;
ssl_certificate /root/163.crt;
ssl_certificate_key /root/163.key;
}

转载请注明:开心VPS测评 » https怎么跳转到https

赞 (0)

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址