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