Nginx(5)

2016-12-03  本文已影响34人  StarShift
upstream backend {
     #ip_hash;
     server 192.168.125.128:443;
     server 192.168.125.130:443;
}

server {
        listen       443;
        server_name  trffweb;
        ssl on;
        ssl_session_timeout 5m;
        keepalive_timeout 70;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers on;
        ssl_certificate /etc/nginx/ssl/server.crt;
        ssl_certificate_key /etc/nginx/ssl/server.key;
        location / {

             #反向代理的地址
             proxy_pass https://backend;
        }

}

上一篇下一篇

猜你喜欢

热点阅读