标签:ssl str cert follow real pre ica rem eal
首先安装tengine 地址:http://tengine.taobao.org/https反向代理
server
{
listen 443;
server_name 域名;
ssl on;
ssl_certificate /usr/local/....com.pem;
ssl_certificate_key /usr/local/....com.key;
location / {
proxy_pass http://123.456.789.111:8080;#服务器IP地址
proxy_set_header X-real-ip $remote_addr;
proxy_set_header Host $http_host;
}
}
http代理
server
{
listen 80;
server_name 域名;
location / {
proxy_pass http://123.456.789.111:8080;#服务器IP地址
proxy_set_header X-real-ip $remote_addr;
proxy_set_header Host $http_host;
}
}
标签:ssl str cert follow real pre ica rem eal
原文地址:http://blog.51cto.com/itafei/2329549