nginx 80端口强制转443
nginx 80端口强制转443
server {
listen 80;
server_name test.com;
rewrite ^(.*)$ https://${server_name}$1 permanent;
}
server {
listen 443 ssl;
server_name test.com;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/2142.html