博客启用全站https

Publish: October 26, 2016 Category: Uncategorized No Comments

服务器的LNMP还是两年前的v1.1,刚好博客改版就顺便整个弄下,把LNMP升级到v1.3了。家里装的移动宽带,宽带流量被运营商劫持,老是觉得http登录不安全,就开启了全站https。

NGINX配置如下,将hjjia.com和www.hjjia.com全部301跳转至https://hjjia.com

server
{
listen 80;
server_name hjjia.com www.hjjia.com;
rewrite ^(.*) https://hjjia.com$1 permanent;
}

Tags: 博客

Related Posts:
  • [尚无相关文章]

Leave a Comment