Nginx配置网站默认https 一、安装Nginx yum install nginx -y 二、修改nginx.conf vim /etc/nginx/nginx.conf 配置80转443 配置https(参考–我这里博客是php项目) 三、启动nginx systemctl start nginx 四、效果