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

server { 
    listen  80; 
    server_name xxxxxxxxxxxxxx.com; 
     
    rewrite ^(.*)$  https://$host$1 permanent; 

猜你喜欢

转载自liyixing1.iteye.com/blog/2240579