参考https://blog.hcl.moe/archives/729
server {
listen 80;
...
return 301 https://$server_name$request_uri;
}
server {
listen 443;
...
}
参考https://blog.hcl.moe/archives/729
server {
listen 80;
...
return 301 https://$server_name$request_uri;
}
server {
listen 443;
...
}
本文标题:Nginx下HTTP强制重定向至HTTPS
本文链接:https://www.haomeiwen.com/subject/njvgrctx.html
网友评论