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