server {
listen 443 ssl;
server_name localhost;
ssl on;
ssl_certificate D://newlingshou//nginx-1.12.2//keys//2796952_mlub.regentxcx.com.pem;
ssl_certificate_key D://newlingshou//nginx-1.12.2//keys//2796952_mlub.regentxcx.com.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;
    }

location /SaleAideServer {
proxy_pass http://127.0.0.1:8701/saleServer;
root html;
index index.html index.htm;
}

location /SaleAideServer2 {
proxy_pass http://127.0.0.1:8702/saleServer;
root html;
index index.html index.htm;
}
}

关于域名证书,需要申请nginx的子域名证书

githubcn,免费获取更多学习视频教程

Nginx 配置443 HTTPS

相关文章:

  • 2021-12-18
  • 2021-05-18
  • 2021-11-18
  • 2021-11-06
  • 2022-01-27
猜你喜欢
  • 2023-03-19
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-10-02
相关资源
相似解决方案