~ubuntu-branches/ubuntu/saucy/haproxy/saucy

« back to all changes in this revision

Viewing changes to tests/test-cookie-rewrite.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
global
 
6
        maxconn 500
 
7
        stats socket /tmp/sock1 mode 777 level admin
 
8
        stats timeout 1d
 
9
 
 
10
defaults
 
11
        mode    http
 
12
        option  http-server-close
 
13
        timeout client 30s
 
14
        timeout server 30s
 
15
        timeout connect 5s
 
16
 
 
17
listen test
 
18
        log 127.0.0.1 local0
 
19
        option httplog
 
20
        bind :8000
 
21
        cookie SID rewrite
 
22
        server s1 127.0.0.1:8001 cookie s1
 
23
        server s2 127.0.0.1:8002 cookie s2
 
24
        capture cookie toto= len 10
 
25
 
 
26
listen s1
 
27
        bind 127.0.0.1:8001
 
28
        server srv 127.0.0.1:8080
 
29
        reqadd x-haproxy-used:\ s1
 
30
 
 
31
listen s2
 
32
        bind 127.0.0.1:8002
 
33
        server srv 127.0.0.1:8080
 
34
        reqadd x-haproxy-used:\ s2
 
35