nginx下ssl配置与强制https

代码如下 server { listen 80; server_name eqblog.com www.eqblog.com; //修改成自己的域名 rewrite ^/(.*) https://eqblog.com/$1 permanent; //修改成自己的域名 } server { listen 443; server_name eqblog.com www.eqblog.com; //修改成自己的域名 access_log /home/wwwlog […]