nginx配置http自动跳转https


可参考如下配置:

server {
    listen 80;
    server_name xxx.com www.xxx.com;
    return 301 https://$host$request_uri;
}

 关注微信公众号

DevOps持续交付公众号ID:devopscd

 目录
 标签