1Panel/cmd/server/nginx_conf/http2https.conf
2022-11-17 21:20:33 +08:00

3 lines
74 B
Plaintext

if ($server_port !~ 443){
rewrite ^(/.*)$ https://$host$1 permanent;
}