nginx for windos 配置https 請求

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;//要跳轉的地址
        }
    }

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章