server {
listen 443 ssl; #监听443端口
server_name www.app01.com;
ssl on; #启用ssl加密
ssl_certificate /etc/cert/xip.io.crt; #服务器证书crt文件
ssl_certificate_key /etc/cert/xip.io.key; #服务器私钥key文件
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://192.168.1.109:8010/;
}
}
server {
listen 443 ssl;
server_name www.app02.com;
ssl on;
ssl_certificate /etc/cert/xip.io.crt;
ssl_certificate_key /etc/cert/xip.io.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://192.168.1.116:8020/;
}