Nginx 配置443 HTTPS


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,免費獲取更多學習視頻教程


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM