server {
listen 443 ssl;
server_name haq.cn;
ssl_certificate /data/ssl/haq/5055063_haq.cn.pem;
ssl_certificate_key /data/ssl/haq/5055063_haq.cn.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.0.132;
}
}
server {
listen 443;
server_name hsj.cn;
ssl_certificate /data/ssl/hsj/5055057_hsj.cn.pem;
ssl_certificate_key /data/ssl/hsj/5055057_hsj.cn.key;
location / {
proxy_pass http://192.18.0.16:7001/bu/;
}
location ^~/bu/ {
proxy_pass http://192.18.0.16:7001/bu/;
}
server {
listen 443;
server_name habc.cn;
ssl_certificate /data/ssl/habc/5055128_habc.cn.pem;
ssl_certificate_key /data/ssl/habc/5055128_habc.cn.key;
location / {
proxy_pass http://192.1.0.156:7005/me/qu/;
location ^~/me/qu/ {
proxy_pass http://192.168.0.156:7005/me/qu/;
}
}
}
给本机添加域名 指定目录 并添加ssl证书
server {
listen 443 ;
server_name hops.cn;
ssl_certificate /data/ssl/hops/5055055_hops.cn.pem;
ssl_certificate_key /data/ssl/hops/5055055_hops.cn.key;
# root /logs/;
location /logs/ {
proxy_pass http://124.1.20.11/logs/;
# index index.html index.htm;
}
}