网站首页 / 资讯 / 服务器/VPS/ 常规配置

Nginx强制SSl启用,开启https访问

作者:admin
if ($server_port !~ 443){
        rewrite ^(/.*)$ https://$host$1 permanent;
    }


标签: nginx强制SSl nginx https
上一篇:nginx 不带www的域名跳转www域名
下一篇:没有了

相关内容

最近更新
相关产品
综合服务邮箱: magento2#foxmail.com