gdx 发表于 2016-12-29 06:27:19

nginx通过重定向强制使用https访问(http跳转到https)

server {
    listen80;
    server_name xxxxxxxxxxxxxx.com;
      
    rewrite ^(.*)$https://$host$1 permanent;
}
页: [1]
查看完整版本: nginx通过重定向强制使用https访问(http跳转到https)