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

posted @ 2021-05-27 10:09  程序员朱永胜  阅读(275)  评论(0)    收藏  举报