~ubuntu-branches/ubuntu/precise/haproxy/precise-proposed

« back to all changes in this revision

Viewing changes to tests/test-cookie-indirect.cfg

  • Committer: Bazaar Package Importer
  • Author(s): Christo Buschek
  • Date: 2011-03-11 12:41:59 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110311124159-9foyp4juf1ilqipo
Tags: 1.4.13-1
* New maintainer upload (Closes: #615246)
* New upstream release
* Standards-version goes 3.9.1 (no change)
* Added patch bashism (Closes: #581109)
* Added a README.source file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Test configuration. It listens on port 8000, forwards to
 
2
# local ports 8001/8002 as two distinct servers, and relies
 
3
# on a server running on local port 8080 to handle the request.
 
4
 
 
5
# Example of request that must be handled (taken from RFC2965 and mangled
 
6
# a bit) :
 
7
# POST /acme/process HTTP/1.1
 
8
# Cookie: $Version="1";
 
9
#        Customer="WILE_E_COYOTE"; $Path="/acme";
 
10
#     SID= s2 ; $Path="/";
 
11
#                Part_Number="Rocket_Launcher_0001"; $Path="/acme";
 
12
#                Shipping="FedEx"; $Path="/acme"
 
13
#
 
14
#
 
15
#
 
16
 
 
17
global
 
18
        maxconn 500
 
19
        stats socket /tmp/sock1 mode 777 level admin
 
20
        stats timeout 1d
 
21
 
 
22
defaults
 
23
        mode    http
 
24
        option  http-server-close
 
25
        timeout client 30s
 
26
        timeout server 30s
 
27
        timeout connect 5s
 
28
 
 
29
listen test
 
30
        log 127.0.0.1 local0
 
31
        option httplog
 
32
        bind :8000
 
33
        cookie SID insert indirect
 
34
        server s1 127.0.0.1:8001 cookie s1
 
35
        server s2 127.0.0.1:8002 cookie s2
 
36
        capture cookie toto= len 10
 
37
 
 
38
listen s1
 
39
        bind 127.0.0.1:8001
 
40
        server srv 127.0.0.1:8080
 
41
        reqadd x-haproxy-used:\ s1
 
42
 
 
43
listen s2
 
44
        bind 127.0.0.1:8002
 
45
        server srv 127.0.0.1:8080
 
46
        reqadd x-haproxy-used:\ s2
 
47