blob: 65fc0d0e74b013f094fbeece875ccd1ca7188219 [file] [log] [blame]
Mark Lamourinec2247f02012-01-04 13:02:01 -05001# Test Rewriting Host header
2global
3 maxconn 100
4
5defaults
6 mode http
7 timeout client 10000
8 timeout server 10000
9 timeout connect 10000
10 balance roundrobin
11
12listen send-name-silo-id
13 bind :8001
14
15 # Set the test conditions: Add a new header
16 http-send-name-header X-Silo-Id
17 server srv-silo1 127.0.0.1:8080
18
19 # Add headers containing the correct values for test verification
20 reqadd X-test-server-name-header:\ X-Silo-Id
21 reqadd X-test-server-name-value:\ srv-silo1
22
23listen send-name-host
24 bind :8002
25
26 # Set the test conditions: Replace an existing header
27 http-send-name-header host
28 server srv-host 127.0.0.1:8080
29
30 # Add headers containing the correct values for test verification
31 reqadd X-test-server-name-header:\ Host
32 reqadd X-test-server-name-value:\ srv-host
33