Nginx Configuration 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/saleAideServer;
root html;
index index.html index.htm;
}

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

About domain name certificate, you need to apply for a certificate subdomain of nginx

Guess you like

Origin www.cnblogs.com/bqh10086/p/11498755.html
Recommended