Nginx配置网站默认https

Nginx配置网站默认https

一、安装Nginx

yum install nginx -y

二、修改nginx.conf

vim /etc/nginx/nginx.conf

配置80转443

image-20210527100419529

配置https(参考--我这里博客是php项目)

image-20210527100352827

三、启动nginx

systemctl start nginx

四、效果image-20210527100448836

原文地址:https://www.cnblogs.com/njpkhuan/p/14816703.html