Home > Archives > 从80端口自动跳转到443端口

从80端口自动跳转到443端口

Publish:

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

声明: 本文采用 BY-NC-SA 授权。转载请注明转自: Ding Bao Guo