摘要: 一、基于cookie的会话保持 cookie value:为当前server指定cookie值,实现基于cookie的会话黏性 1、配置选项 cookie name [ rewrite | insert | prefix ][ indirect ] [ nocache ][ postonly ] [ 阅读全文
posted @ 2021-01-07 19:46 yaowx 阅读(523) 评论(0) 推荐(0) 编辑
摘要: IP透传是web服务器中需要记录客户端的真实IP地址,用于做访问统计、安全防护、行为分析、区域排行等场景。 四层IP透传配置 haproxy 配置: listen web_prot bind 192.168.32.204:80 mode tcp balance roundrobin server w 阅读全文
posted @ 2021-01-07 15:25 yaowx 阅读(1068) 评论(0) 推荐(1) 编辑
摘要: 一、实验拓扑及环境 System OS: CentOS Linux release 7.8.2003 (Core) 内核:3.10.0-1127.el7.x86_64 web01: node1 10.0.0.201 nginx web02: node2 10.0.0.202 nginx haprox 阅读全文
posted @ 2021-01-07 15:10 yaowx 阅读(211) 评论(0) 推荐(0) 编辑