kuoruan / shell-scripts

Linux Shell Scripts
Apache License 2.0
1.18k stars 541 forks source link

Update haproxy-lkl.sh #19

Closed ellermister closed 5 years ago

ellermister commented 5 years ago

增加原始IP给后端服务器(例如做web服务) nginx需要增加proxy_protocol 如:listen 443 ssl http2 proxy_protocol; 以及: set_real_ip_from 10.0.0.2; real_ip_header proxy_protocol;

博客原文:https://wbuntu.com/p/1176 nginx文档代理相关:https://docs.nginx.com/nginx/admin-guide/load-balancer/using-proxy-protocol/