- 论坛徽章:
- 36
|
回复 90# coldgin
我测试的反向代理 CU 的核心配置如下:
frontend fe
bind 127.0.0.1:9000
default_backend be
backend be
balance static-rr
server 1 bbs.chinaunix.net:80 cookie rs1
测试请求如下:
wget 'http://127.0.0.1:9000/forum-224-1.html' --header="Host: bbs.chinaunix.net"
结果如下:
$wget 'http://127.0.0.1:9000/forum-224-1.html' --header="Host: bbs.chinaunix.net"
--2016-04-07 14:06:56-- http://127.0.0.1:9000/forum-224-1.html
Connecting to 127.0.0.1:9000... connected.
HTTP request sent, awaiting response... 200 OK
Cookie coming from 127.0.0.1 attempted to set domain to 127.0.0.1
Cookie coming from 127.0.0.1 attempted to set domain to 127.0.0.1
Cookie coming from 127.0.0.1 attempted to set domain to 127.0.0.1
Cookie coming from 127.0.0.1 attempted to set domain to 127.0.0.1
Cookie coming from 127.0.0.1 attempted to set domain to 127.0.0.1
Cookie coming from 127.0.0.1 attempted to set domain to 127.0.0.1
Cookie coming from 127.0.0.1 attempted to set domain to 127.0.0.1
Cookie coming from 127.0.0.1 attempted to set domain to 127.0.0.1
Length: unspecified [text/html]
Saving to: “forum-224-1.html.1”
[ <=> ] 113,122 730K/s in 0.2s
2016-04-07 14:06:57 (730 KB/s) - “forum-224-1.html.1” saved [113122]
|
|