Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
yumijie
V2EX  ›  Linux

ssl 怎样设置才能让 xxx.com 直接跳转到 https://xxx.com

  •  
  •   yumijie · Aug 22, 2017 · 2417 views
    This topic created in 3223 days ago, the information mentioned may be changed or developed.
    我的系统是 centos,LAMP

    我在 centos 下安装宝塔软件,设置了 Let's Encrypt 证书,但是只能直接用 https://xxx.com 才能访问,不能在浏览器上输入 xxx.com 或者 www.xxx.com 这样的形式访问网站!!!!!
    请教怎样社会自才能做到,在地址栏直接输入 xxx.com 或者 www.xxx.com 就能访问网站
    a234712524
        1
    a234712524  
       Aug 22, 2017
    301,302,HSTS 不都行吗?
    ququzone
        2
    ququzone  
       Aug 22, 2017
    nginx 里面配置重定向 301 重定向
    Rezark
        3
    Rezark  
       Aug 22, 2017
    https://www.morong.me/?p=58 可以参考这个
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2640 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 08:20 · PVG 16:20 · LAX 01:20 · JFK 04:20
    ♥ Do have faith in what you're doing.