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

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

Publish:

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

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