HSTS的开启

ssh登陆服务器

进入 /usr/local/nginx/conf/vhost

 cd /usr/local/nginx/conf/vhost

ls下

 ls -al

然后vi或者vim修改你想启用HSTS的域名.conf文件内容

 vim 你想启用HSTS的域名.conf

在server 块 https 代码下方加入一行

 add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";

保存退出后重启nginx服务

 service nginx restart

启用HSTS完成

开启了HSTS以后,你部署的服务器SSL/TLS得分就可能是A+了
下面两个网站可以检测得分

https://www.ssllabs.com/
https://myssl.com

开启HSTS主要参考的是前文的链接修改的

伪静态的开启

伪静态的开启比较简单
进入

 /usr/local/nginx/conf/vhost 

修改对应域名的conf文件
include other.conf 修改为下面中的一个,没有的话搜索下自己写一个

 codeigniter.conf          
 dabr.conf               
 dedecms.conf              
 shopex.conf
 discuz.conf               
 laravel.conf            
 discuzx.conf              
 thinkphp.conf
 drupal.conf               
 typecho2.conf
 ecshop.conf               
 nginx.conf              
 typecho.conf
 enable-php.conf
 enable-php-pathinfo.conf  
 none.conf
 enable-ssl-example.conf   
 other.conf
 fastcgi.conf              
 pathinfo.conf
 phpwind.conf  
 wordpress.conf            
 sablog.conf             
 wp2.conf

保存退出后重启nginx

 service nginx restart   

目前就是这么搞的 效果留待观察

找到个介绍Markdown语法的

https://www.jianshu.com/p/82e730892d42
目前还只会标题及引用