Linux备忘录
2019-07-31 本文已影响0人
dev_winner
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