http强制跳转https
server{
listen 80;
#listen [::]:80;
server_name www.yourname.com ;
index index.html index.htm index.php default.html default.htm default.php;
root/home/www.yourname.com;
return 301 https://www.yourname.com$request_uri;
#error_page 404 /404.html;
nginx的域名配置中,增加上述内容
页:
[1]