1,首先的配好证书
2,找到nginx.conf配置文件,新增server模块
server {
listen 443 ssl;
server_name www.taiyuanxhc.com;
ssl_certificate crt的物理路径;
ssl_certificate_key key的物理路劲;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
root html;
index index.html index.htm;
proxy_pass http://localhost:8080;//要跳转的地址
}
}