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

posted @ 2020-02-24 22:37  王能武  阅读(113)  评论(0编辑  收藏  举报