1、新增以下 server 使所有 HTTP 请求都跳转至 HTTPS :(nginx.conf
)
server {
listen 80;
server_name example.com www.example.com service.example.com;
return 301 https://$host$request_uri;
}
具体链接:https://www.cnblogs.com/ly-radiata/articles/6119374.html
1、新增以下 server 使所有 HTTP 请求都跳转至 HTTPS :(nginx.conf
)
server {
listen 80;
server_name example.com www.example.com service.example.com;
return 301 https://$host$request_uri;
}
具体链接:https://www.cnblogs.com/ly-radiata/articles/6119374.html
本文标题:Linux备忘录
本文链接:https://www.haomeiwen.com/subject/krtzrctx.html
网友评论