nginx应用

(1):

location /abchina {

proxy_pass https://app.gd.abchina.com/Test/zxr/zxr;
proxy_set_header Host $host; #域名转发
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr; #IP转发
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 60;
proxy_read_timeout 600;
proxy_send_timeout 600;
}
Ps:nginx配置https转发,需要nginx编译安装的时候配置SSL模块支持
./configure --prefix=/usr/local/nginx --with-http_ssl_module

原文地址:https://www.cnblogs.com/wangnengwu/p/12359325.html