willy tarreau | 9fe663a | 2005-12-17 13:02:59 +0100 | [diff] [blame^] | 1 | global |
| 2 | log 127.0.0.1 local0 |
| 3 | # log 127.0.0.1 local1 |
| 4 | maxconn 4000 |
| 5 | uid 0 |
| 6 | gid 0 |
| 7 | # chroot /tmp |
| 8 | # nbproc 4 |
| 9 | # daemon |
| 10 | # debug |
| 11 | # quiet |
| 12 | |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 13 | listen proxy1 0.0.0.0:8000 |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 14 | mode http |
willy tarreau | 9fe663a | 2005-12-17 13:02:59 +0100 | [diff] [blame^] | 15 | # log 127.0.0.1 local0 |
| 16 | # log 127.0.0.1 local1 |
| 17 | log global |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 18 | #mode tcp |
| 19 | cookie SERVERID insert indirect |
| 20 | balance roundrobin |
| 21 | #dispatch 127.0.0.1:3130 |
| 22 | #dispatch 127.0.0.1:31300 |
| 23 | #dispatch 127.0.0.1:80 |
| 24 | #dispatch 127.0.0.1:22 |
willy tarreau | 9fe663a | 2005-12-17 13:02:59 +0100 | [diff] [blame^] | 25 | #server nc 127.0.0.1:8080 cookie cookie1 check |
| 26 | server tuxlocal 127.0.0.1:80 cookie cookie1 check |
willy tarreau | ef900ab | 2005-12-17 12:52:52 +0100 | [diff] [blame] | 27 | #server tuxceleron 10.101.0.1:80 cookie cookie2 check |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 28 | #server telnet 127.0.0.1:23 |
| 29 | #server ssh 127.0.0.1:22 |
willy tarreau | 9fe663a | 2005-12-17 13:02:59 +0100 | [diff] [blame^] | 30 | #server local 127.0.0.1:3130 cookie cookie3 check |
| 31 | #server ko 127.0.0.1:0 cookie cookie3 check |
willy tarreau | ef900ab | 2005-12-17 12:52:52 +0100 | [diff] [blame] | 32 | #server local 127.0.0.1:8001 cookie cookie3 check |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 33 | #server local 127.0.0.1:3130 |
| 34 | #server celeron 10.101.0.1:80 cookie srv1 |
| 35 | #server celeron 10.101.0.1:31300 |
| 36 | #server local 10.101.23.9:31300 |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 37 | contimeout 3000 |
| 38 | clitimeout 150000 |
| 39 | srvtimeout 150000 |
| 40 | maxconn 60000 |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 41 | redispatch |
| 42 | retries 3 |
| 43 | grace 3000 |
| 44 | #rsprep ^Server.* Server:\ IIS |
| 45 | #rspdel ^Server.* |
| 46 | #rspadd Set-Cookie:\ mycookie=0;\ path=/ |
| 47 | #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2) |
willy tarreau | 9fe663a | 2005-12-17 13:02:59 +0100 | [diff] [blame^] | 48 | # force connection:close |
| 49 | #reqidel ^Connection: |
| 50 | #rspidel ^Connection: |
| 51 | #reqadd Connection:\ close |
| 52 | #rspadd Connection:\ close |
| 53 | # processing options |
| 54 | #option keepalive |
| 55 | option forwardfor |
| 56 | option httplog |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 57 | |
willy tarreau | ef900ab | 2005-12-17 12:52:52 +0100 | [diff] [blame] | 58 | listen proxy1 0.0.0.0:8001 |
| 59 | mode http |
| 60 | #mode tcp |
| 61 | dispatch 127.0.0.1:80 |
| 62 | #dispatch 127.0.0.1:31300 |
| 63 | #dispatch 127.0.0.1:80 |
| 64 | #dispatch 127.0.0.1:22 |
| 65 | #server tuxlocal 127.0.0.1:80 cookie cookie1 check |
| 66 | #server tuxceleron 10.101.0.1:80 cookie cookie2 check |
| 67 | #server telnet 127.0.0.1:23 |
| 68 | #server ssh 127.0.0.1:22 |
| 69 | #server local 127.0.0.1:3130 cookie cookie3 check |
| 70 | #server local 127.0.0.1:3130 |
| 71 | #server celeron 10.101.0.1:80 cookie srv1 |
| 72 | #server celeron 10.101.0.1:31300 |
| 73 | #server local 10.101.23.9:31300 |
| 74 | contimeout 3000 |
| 75 | clitimeout 150000 |
| 76 | srvtimeout 150000 |
| 77 | maxconn 60000 |
| 78 | redispatch |
| 79 | retries 3 |
| 80 | grace 3000 |
| 81 | #rsprep ^Server.* Server:\ IIS |
| 82 | #rspdel ^Server.* |
| 83 | rspadd Set-Cookie:\ SERVERID=12345678;\ path=/ |
| 84 | #rsprep ^(Date:\ )([^,]*)(,\ )(.*) LaDate\ est:\ \4\ (\2) |
| 85 | |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 86 | listen proxy1 0.0.0.0:3128 |
willy tarreau | ef900ab | 2005-12-17 12:52:52 +0100 | [diff] [blame] | 87 | disabled |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 88 | mode http |
willy tarreau | ef900ab | 2005-12-17 12:52:52 +0100 | [diff] [blame] | 89 | cookie SERVERID insert indirect |
| 90 | #dispatch 127.0.0.1:8080 |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 91 | server srv1 127.0.0.1:8080 |
| 92 | #server srv2 192.168.12.3:8080 |
| 93 | contimeout 3000 |
| 94 | clitimeout 450000 |
| 95 | srvtimeout 450000 |
| 96 | maxconn 60000 |
| 97 | redispatch |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 98 | retries 3 |
| 99 | grace 3000 |
willy tarreau | ef900ab | 2005-12-17 12:52:52 +0100 | [diff] [blame] | 100 | rspdel ^Via:.* |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 101 | |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 102 | |
| 103 | listen proxy2 0.0.0.0:3129 |
willy tarreau | ef900ab | 2005-12-17 12:52:52 +0100 | [diff] [blame] | 104 | disabled |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 105 | mode http |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 106 | transparent |
| 107 | # dispatch 127.0.0.1:80 |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 108 | contimeout 3000 |
| 109 | clitimeout 150000 |
| 110 | srvtimeout 150000 |
| 111 | maxconn 60000 |
| 112 | retries 3 |
| 113 | grace 3000 |
| 114 | |
| 115 | # log 10.101.11.1 local1 |
| 116 | # log 10.101.11.1 local2 |
| 117 | |
| 118 | # cliexp ^(.*ASPSESSIONID.*=)(.*) \1FENICGGCBECLFFEEOAEAIFGF |
| 119 | # cliexp ^(GET.*)(.free.fr)(.*) \1.online.fr\3 |
| 120 | # cliexp ^(POST.*)(.free.fr)(.*) \1.online.fr\3 |
| 121 | # cliexp ^Proxy-Connection:.* Proxy-Connection:\ close |
| 122 | # srvexp ^(Location:\ )([^:]*://[^/]*)(.*) \1\3 |
| 123 | |
| 124 | listen health 0.0.0.0:3130 |
| 125 | mode health |
| 126 | clitimeout 1500 |
| 127 | srvtimeout 1500 |
willy tarreau | 5cbea6f | 2005-12-17 12:48:26 +0100 | [diff] [blame] | 128 | maxconn 6000 |
| 129 | grace 0 |
| 130 | |
| 131 | |
| 132 | listen health 0.0.0.0:31300 |
| 133 | mode health |
| 134 | clitimeout 1500 |
| 135 | srvtimeout 1500 |
| 136 | maxconn 6000 |
willy tarreau | 0f7af91 | 2005-12-17 12:21:26 +0100 | [diff] [blame] | 137 | grace 0 |