experella-proxy 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. data/.gitignore +15 -0
  2. data/Gemfile +3 -0
  3. data/README.md +219 -0
  4. data/Rakefile +25 -0
  5. data/TODO.txt +20 -0
  6. data/bin/experella-proxy +54 -0
  7. data/config/default/404.html +16 -0
  8. data/config/default/503.html +18 -0
  9. data/config/default/config.rb +64 -0
  10. data/config/default/ssl/certs/experella-proxy.pem +18 -0
  11. data/config/default/ssl/private/experella-proxy.key +28 -0
  12. data/dev/experella-proxy +62 -0
  13. data/experella-proxy.gemspec +39 -0
  14. data/lib/experella-proxy/backend.rb +58 -0
  15. data/lib/experella-proxy/backend_server.rb +100 -0
  16. data/lib/experella-proxy/configuration.rb +154 -0
  17. data/lib/experella-proxy/connection.rb +557 -0
  18. data/lib/experella-proxy/connection_manager.rb +167 -0
  19. data/lib/experella-proxy/globals.rb +37 -0
  20. data/lib/experella-proxy/http_status_codes.rb +45 -0
  21. data/lib/experella-proxy/proxy.rb +61 -0
  22. data/lib/experella-proxy/request.rb +106 -0
  23. data/lib/experella-proxy/response.rb +204 -0
  24. data/lib/experella-proxy/server.rb +68 -0
  25. data/lib/experella-proxy/version.rb +15 -0
  26. data/lib/experella-proxy.rb +93 -0
  27. data/spec/echo-server/echo_server.rb +49 -0
  28. data/spec/experella-proxy/backend_server_spec.rb +101 -0
  29. data/spec/experella-proxy/configuration_spec.rb +27 -0
  30. data/spec/experella-proxy/connection_manager_spec.rb +159 -0
  31. data/spec/experella-proxy/experella-proxy_spec.rb +471 -0
  32. data/spec/experella-proxy/request_spec.rb +88 -0
  33. data/spec/experella-proxy/response_spec.rb +44 -0
  34. data/spec/fixtures/404.html +16 -0
  35. data/spec/fixtures/503.html +18 -0
  36. data/spec/fixtures/spec.log +331 -0
  37. data/spec/fixtures/test_config.rb +34 -0
  38. data/spec/spec.log +235 -0
  39. data/spec/spec_helper.rb +35 -0
  40. data/test/sinatra/hello_world_server.rb +17 -0
  41. data/test/sinatra/server_one.rb +89 -0
  42. data/test/sinatra/server_two.rb +89 -0
  43. metadata +296 -0
@@ -0,0 +1,331 @@
1
+ I, [2014-02-12T13:10:42.480652 #17538] INFO -- : should respond with 503
2
+ I, [2014-02-12T13:10:41.883428 #17543] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
3
+ I, [2014-02-12T13:10:41.883475 #17543] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
4
+ I, [2014-02-12T13:10:41.883491 #17543] INFO -- : Backend mangles: nil
5
+ I, [2014-02-12T13:10:41.883522 #17543] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
6
+ I, [2014-02-12T13:10:41.883539 #17543] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
7
+ I, [2014-02-12T13:10:41.883552 #17543] INFO -- : Backend mangles: nil
8
+ I, [2014-02-12T13:10:41.883580 #17543] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
9
+ I, [2014-02-12T13:10:41.883598 #17543] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"/(oneroute|anotherpath)($|/)"}
10
+ I, [2014-02-12T13:10:41.883612 #17543] INFO -- : Backend mangles: nil
11
+ I, [2014-02-12T13:10:41.883638 #17543] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
12
+ I, [2014-02-12T13:10:41.883653 #17543] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
13
+ I, [2014-02-12T13:10:41.883666 #17543] INFO -- : Backend mangles: nil
14
+ I, [2014-02-12T13:10:41.883770 #17543] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
15
+ I, [2014-02-12T13:10:41.883786 #17543] INFO -- : with options: {}
16
+ I, [2014-02-12T13:10:41.883841 #17543] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
17
+ I, [2014-02-12T13:10:41.883856 #17543] INFO -- : with options: {}
18
+ I, [2014-02-12T13:10:42.681917 #17543] INFO -- : 0.02ms: new Connection @5
19
+ I, [2014-02-12T13:10:42.682163 #17543] INFO -- : 0.011ms: new Connection @7
20
+ I, [2014-02-12T13:10:42.682642 #17543] INFO -- : ["0.762ms: ", "new Request @5 Host: experella.com Request Path: /anotherpath"]
21
+ I, [2014-02-12T13:10:42.683171 #17543] INFO -- : 1.294ms: on_data @5
22
+ I, [2014-02-12T13:10:42.683354 #17543] INFO -- : ["1.204ms: ", "new Request @7 Host: experella.com Request Path: /oneroute"]
23
+ I, [2014-02-12T13:10:42.683586 #17543] INFO -- : 1.438ms: on_data @7
24
+ I, [2014-02-12T13:10:42.683678 #17543] INFO -- : 1.797ms: on_finish @5 for exp proxy responded? false
25
+ E, [2014-02-12T13:10:42.683719 #17543] ERROR -- : 1.845ms: Error, backend didnt respond
26
+ E, [2014-02-12T13:10:42.683763 #17543] ERROR -- : ["1.89ms: ", :error_to_client, "HTTP/1.1 503 Service unavailable\r\nContent-Length: 285\r\nContent-Type: text/html;charset=utf-8\r\nConnection: close\r\n\r\n<!DOCTYPE html>\n<html>\n<head>\n <style type=\"text/css\"> body {\n text-align: center;\n font-family: helvetica, arial;\n font-size: 22px;\n color: #000;\n margin: 20px\n\n }\n\n </style>\n</head>\n<body>\n<h2> 503 Service unavailable!</h2>\n</body>\n</html>"]
27
+ I, [2014-02-12T13:10:42.683991 #17543] INFO -- : ["2.11ms: ", "Client connection unbound! @5"]
28
+ I, [2014-02-12T13:10:42.684228 #17543] INFO -- : 2.073ms: on_finish @7 for exp proxy responded? false
29
+ E, [2014-02-12T13:10:42.684273 #17543] ERROR -- : 2.126ms: Error, backend didnt respond
30
+ E, [2014-02-12T13:10:42.684312 #17543] ERROR -- : ["2.166ms: ", :error_to_client, "HTTP/1.1 503 Service unavailable\r\nContent-Length: 285\r\nContent-Type: text/html;charset=utf-8\r\nConnection: close\r\n\r\n"]
31
+ I, [2014-02-12T13:10:42.684460 #17543] INFO -- : ["2.31ms: ", "Client connection unbound! @7"]
32
+ I, [2014-02-12T13:10:42.684995 #17543] INFO -- : Terminating experella-proxy
33
+ I, [2014-02-12T13:10:44.488560 #17538] INFO -- : should be able to handle post requests
34
+ I, [2014-02-12T13:10:43.890728 #17547] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
35
+ I, [2014-02-12T13:10:43.890797 #17547] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
36
+ I, [2014-02-12T13:10:43.890823 #17547] INFO -- : Backend mangles: nil
37
+ I, [2014-02-12T13:10:43.890857 #17547] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
38
+ I, [2014-02-12T13:10:43.890876 #17547] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
39
+ I, [2014-02-12T13:10:43.890889 #17547] INFO -- : Backend mangles: nil
40
+ I, [2014-02-12T13:10:43.890918 #17547] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
41
+ I, [2014-02-12T13:10:43.890937 #17547] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"/(oneroute|anotherpath)($|/)"}
42
+ I, [2014-02-12T13:10:43.890950 #17547] INFO -- : Backend mangles: nil
43
+ I, [2014-02-12T13:10:43.890977 #17547] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
44
+ I, [2014-02-12T13:10:43.890992 #17547] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
45
+ I, [2014-02-12T13:10:43.891005 #17547] INFO -- : Backend mangles: nil
46
+ I, [2014-02-12T13:10:43.891112 #17547] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
47
+ I, [2014-02-12T13:10:43.891128 #17547] INFO -- : with options: {}
48
+ I, [2014-02-12T13:10:43.891182 #17547] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
49
+ I, [2014-02-12T13:10:43.891197 #17547] INFO -- : with options: {}
50
+ I, [2014-02-12T13:10:44.689575 #17547] INFO -- : 0.02ms: new Connection @5
51
+ I, [2014-02-12T13:10:44.689838 #17547] INFO -- : ["0.301ms: ", "new Request @5 Host: experella.com Request Path: /"]
52
+ I, [2014-02-12T13:10:44.690306 #17547] INFO -- : 0.77ms: on_data @5
53
+ I, [2014-02-12T13:10:44.690434 #17547] INFO -- : 0.9ms: on_connect @5 experella1
54
+ I, [2014-02-12T13:10:44.690803 #17547] INFO -- : 1.257ms: on_response @5 from experella1
55
+ I, [2014-02-12T13:10:44.691054 #17547] INFO -- : 1.513ms: on_finish @5 for experella1 responded? true
56
+ I, [2014-02-12T13:10:44.691104 #17547] INFO -- : 1.571ms: Request done! @5
57
+ I, [2014-02-12T13:10:44.691310 #17547] INFO -- : ["1.775ms: ", "Client connection unbound! @5"]
58
+ I, [2014-02-12T13:10:44.691569 #17547] INFO -- : Terminating experella-proxy
59
+ I, [2014-02-12T13:10:46.496618 #17538] INFO -- : should reuse keep-alive connections
60
+ I, [2014-02-12T13:10:45.896880 #17550] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
61
+ I, [2014-02-12T13:10:45.896933 #17550] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
62
+ I, [2014-02-12T13:10:45.896949 #17550] INFO -- : Backend mangles: nil
63
+ I, [2014-02-12T13:10:45.896982 #17550] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
64
+ I, [2014-02-12T13:10:45.897000 #17550] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
65
+ I, [2014-02-12T13:10:45.897014 #17550] INFO -- : Backend mangles: nil
66
+ I, [2014-02-12T13:10:45.897043 #17550] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
67
+ I, [2014-02-12T13:10:45.897062 #17550] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"/(oneroute|anotherpath)($|/)"}
68
+ I, [2014-02-12T13:10:45.897076 #17550] INFO -- : Backend mangles: nil
69
+ I, [2014-02-12T13:10:45.897104 #17550] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
70
+ I, [2014-02-12T13:10:45.897120 #17550] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
71
+ I, [2014-02-12T13:10:45.897133 #17550] INFO -- : Backend mangles: nil
72
+ I, [2014-02-12T13:10:45.897245 #17550] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
73
+ I, [2014-02-12T13:10:45.897261 #17550] INFO -- : with options: {}
74
+ I, [2014-02-12T13:10:45.897318 #17550] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
75
+ I, [2014-02-12T13:10:45.897333 #17550] INFO -- : with options: {}
76
+ I, [2014-02-12T13:10:46.697801 #17550] INFO -- : 0.02ms: new Connection @5
77
+ I, [2014-02-12T13:10:46.698068 #17550] INFO -- : ["0.305ms: ", "new Request @5 Host: experella.com Request Path: /"]
78
+ I, [2014-02-12T13:10:46.698524 #17550] INFO -- : 0.765ms: on_data @5
79
+ I, [2014-02-12T13:10:46.698666 #17550] INFO -- : 0.906ms: on_connect @5 experella1
80
+ I, [2014-02-12T13:10:46.699016 #17550] INFO -- : 1.245ms: on_response @5 from experella1
81
+ I, [2014-02-12T13:10:46.699270 #17550] INFO -- : 1.504ms: on_finish @5 for experella1 responded? true
82
+ I, [2014-02-12T13:10:46.699320 #17550] INFO -- : 1.563ms: Request done! @5
83
+ I, [2014-02-12T13:10:46.699901 #17550] INFO -- : ["2.139ms: ", "new Request @5 Host: experella.com Request Path: /about/"]
84
+ I, [2014-02-12T13:10:46.700271 #17550] INFO -- : 2.512ms: on_data @5
85
+ I, [2014-02-12T13:10:46.700378 #17550] INFO -- : 2.62ms: on_connect @5 experella2
86
+ I, [2014-02-12T13:10:46.700657 #17550] INFO -- : 2.886ms: on_response @5 from experella2
87
+ I, [2014-02-12T13:10:46.700880 #17550] INFO -- : 3.116ms: on_finish @5 for experella2 responded? true
88
+ I, [2014-02-12T13:10:46.700929 #17550] INFO -- : 3.171ms: Request done! @5
89
+ I, [2014-02-12T13:10:46.701479 #17550] INFO -- : ["3.717ms: ", "new Request @5 Host: experella.com Request Path: /"]
90
+ I, [2014-02-12T13:10:46.701870 #17550] INFO -- : 4.111ms: on_data @5
91
+ I, [2014-02-12T13:10:46.701979 #17550] INFO -- : 4.221ms: on_connect @5 experella1
92
+ I, [2014-02-12T13:10:46.702259 #17550] INFO -- : 4.489ms: on_response @5 from experella1
93
+ I, [2014-02-12T13:10:46.702499 #17550] INFO -- : 4.735ms: on_finish @5 for experella1 responded? true
94
+ I, [2014-02-12T13:10:46.702548 #17550] INFO -- : 4.79ms: Request done! @5
95
+ I, [2014-02-12T13:10:46.702744 #17550] INFO -- : ["4.984ms: ", "Client connection unbound! @5"]
96
+ I, [2014-02-12T13:10:46.702983 #17550] INFO -- : Terminating experella-proxy
97
+ I, [2014-02-12T13:10:48.508535 #17538] INFO -- : should respond with 404
98
+ I, [2014-02-12T13:10:47.908701 #17552] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
99
+ I, [2014-02-12T13:10:47.908748 #17552] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
100
+ I, [2014-02-12T13:10:47.908764 #17552] INFO -- : Backend mangles: nil
101
+ I, [2014-02-12T13:10:47.908795 #17552] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
102
+ I, [2014-02-12T13:10:47.908813 #17552] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
103
+ I, [2014-02-12T13:10:47.908825 #17552] INFO -- : Backend mangles: nil
104
+ I, [2014-02-12T13:10:47.908853 #17552] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
105
+ I, [2014-02-12T13:10:47.908871 #17552] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"/(oneroute|anotherpath)($|/)"}
106
+ I, [2014-02-12T13:10:47.908884 #17552] INFO -- : Backend mangles: nil
107
+ I, [2014-02-12T13:10:47.908910 #17552] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
108
+ I, [2014-02-12T13:10:47.908925 #17552] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
109
+ I, [2014-02-12T13:10:47.908937 #17552] INFO -- : Backend mangles: nil
110
+ I, [2014-02-12T13:10:47.909042 #17552] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
111
+ I, [2014-02-12T13:10:47.909058 #17552] INFO -- : with options: {}
112
+ I, [2014-02-12T13:10:47.909111 #17552] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
113
+ I, [2014-02-12T13:10:47.909125 #17552] INFO -- : with options: {}
114
+ I, [2014-02-12T13:10:48.709773 #17552] INFO -- : 0.019ms: new Connection @5
115
+ I, [2014-02-12T13:10:48.709965 #17552] INFO -- : 0.01ms: new Connection @7
116
+ I, [2014-02-12T13:10:48.710432 #17552] INFO -- : ["0.695ms: ", "new Request @5 Host: 127.0.0.1:6896 Request Path: /"]
117
+ E, [2014-02-12T13:10:48.710746 #17552] ERROR -- : 1.012ms: Error, send client error message and unbind! No backend will match
118
+ E, [2014-02-12T13:10:48.710819 #17552] ERROR -- : ["1.087ms: ", :error_to_client, "HTTP/1.1 404 Not Found\r\nContent-Length: 277\r\nContent-Type: text/html;charset=utf-8\r\nConnection: close\r\n\r\n"]
119
+ I, [2014-02-12T13:10:48.710954 #17552] INFO -- : 1.222ms: on_data @5
120
+ I, [2014-02-12T13:10:48.711098 #17552] INFO -- : ["1.146ms: ", "new Request @7 Host: 127.0.0.1:6896 Request Path: /"]
121
+ E, [2014-02-12T13:10:48.711300 #17552] ERROR -- : 1.348ms: Error, send client error message and unbind! No backend will match
122
+ E, [2014-02-12T13:10:48.711348 #17552] ERROR -- : ["1.399ms: ", :error_to_client, "HTTP/1.1 404 Not Found\r\nContent-Length: 277\r\nContent-Type: text/html;charset=utf-8\r\nConnection: close\r\n\r\n<!DOCTYPE html>\n<html>\n<head>\n <style type=\"text/css\"> body {\n text-align: center;\n font-family: helvetica, arial;\n font-size: 22px;\n color: #000;\n margin: 20px\n }\n </style>\n</head>\n<body>\n<h2>404 Page not found!</h2>\n</body>\n</html>"]
123
+ I, [2014-02-12T13:10:48.711454 #17552] INFO -- : 1.499ms: on_data @7
124
+ I, [2014-02-12T13:10:48.711630 #17552] INFO -- : ["1.896ms: ", "Client connection unbound! @5"]
125
+ I, [2014-02-12T13:10:48.711731 #17552] INFO -- : ["1.778ms: ", "Client connection unbound! @7"]
126
+ I, [2014-02-12T13:10:48.712294 #17552] INFO -- : Terminating experella-proxy
127
+ I, [2014-02-12T13:10:50.516193 #17538] INFO -- : should timeout inactive connections after config.timeout
128
+ I, [2014-02-12T13:10:49.916724 #17556] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
129
+ I, [2014-02-12T13:10:49.916773 #17556] INFO -- : Backend accepts: {"request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$", "Host"=>"experella"}
130
+ I, [2014-02-12T13:10:49.916788 #17556] INFO -- : Backend mangles: nil
131
+ I, [2014-02-12T13:10:49.916819 #17556] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
132
+ I, [2014-02-12T13:10:49.916837 #17556] INFO -- : Backend accepts: {"request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$", "Host"=>"experella"}
133
+ I, [2014-02-12T13:10:49.916849 #17556] INFO -- : Backend mangles: nil
134
+ I, [2014-02-12T13:10:49.916877 #17556] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
135
+ I, [2014-02-12T13:10:49.916895 #17556] INFO -- : Backend accepts: {"request_url"=>"/(oneroute|anotherpath)($|/)", "Host"=>"experella"}
136
+ I, [2014-02-12T13:10:49.916908 #17556] INFO -- : Backend mangles: nil
137
+ I, [2014-02-12T13:10:49.916934 #17556] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
138
+ I, [2014-02-12T13:10:49.916949 #17556] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
139
+ I, [2014-02-12T13:10:49.916961 #17556] INFO -- : Backend mangles: nil
140
+ I, [2014-02-12T13:10:49.917067 #17556] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
141
+ I, [2014-02-12T13:10:49.917083 #17556] INFO -- : with options: {}
142
+ I, [2014-02-12T13:10:49.917137 #17556] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
143
+ I, [2014-02-12T13:10:49.917152 #17556] INFO -- : with options: {}
144
+ I, [2014-02-12T13:10:50.717274 #17556] INFO -- : 0.021ms: new Connection @5
145
+ I, [2014-02-12T13:10:50.717533 #17556] INFO -- : ["0.297ms: ", "new Request @5 Host: experella.com Request Path: /"]
146
+ I, [2014-02-12T13:10:50.717994 #17556] INFO -- : 0.76ms: on_data @5
147
+ I, [2014-02-12T13:10:50.718122 #17556] INFO -- : 0.89ms: on_connect @5 experella1
148
+ I, [2014-02-12T13:10:50.718448 #17556] INFO -- : 1.204ms: on_response @5 from experella1
149
+ I, [2014-02-12T13:10:50.718708 #17556] INFO -- : 1.468ms: on_finish @5 for experella1 responded? true
150
+ I, [2014-02-12T13:10:50.718772 #17556] INFO -- : 1.526ms: Request done! @5
151
+ I, [2014-02-12T13:10:56.723670 #17556] INFO -- : ["6006.413ms: ", :unbind_client, :timeout, "@5"]
152
+ I, [2014-02-12T13:10:56.723906 #17556] INFO -- : ["6006.671ms: ", "Client connection unbound! @5"]
153
+ I, [2014-02-12T13:10:57.896128 #17556] INFO -- : Terminating experella-proxy
154
+ I, [2014-02-12T13:10:59.700574 #17538] INFO -- : should stream chunked post requests
155
+ I, [2014-02-12T13:10:59.098035 #17570] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
156
+ I, [2014-02-12T13:10:59.098083 #17570] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
157
+ I, [2014-02-12T13:10:59.098098 #17570] INFO -- : Backend mangles: nil
158
+ I, [2014-02-12T13:10:59.098129 #17570] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
159
+ I, [2014-02-12T13:10:59.098146 #17570] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
160
+ I, [2014-02-12T13:10:59.098159 #17570] INFO -- : Backend mangles: nil
161
+ I, [2014-02-12T13:10:59.098187 #17570] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
162
+ I, [2014-02-12T13:10:59.098205 #17570] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"/(oneroute|anotherpath)($|/)"}
163
+ I, [2014-02-12T13:10:59.098217 #17570] INFO -- : Backend mangles: nil
164
+ I, [2014-02-12T13:10:59.098243 #17570] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
165
+ I, [2014-02-12T13:10:59.098258 #17570] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
166
+ I, [2014-02-12T13:10:59.098270 #17570] INFO -- : Backend mangles: nil
167
+ I, [2014-02-12T13:10:59.098377 #17570] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
168
+ I, [2014-02-12T13:10:59.098392 #17570] INFO -- : with options: {}
169
+ I, [2014-02-12T13:10:59.098447 #17570] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
170
+ I, [2014-02-12T13:10:59.098461 #17570] INFO -- : with options: {}
171
+ I, [2014-02-12T13:10:59.916851 #17570] INFO -- : 0.021ms: new Connection @5
172
+ I, [2014-02-12T13:10:59.917117 #17570] INFO -- : ["0.305ms: ", "new Request @5 Host: experella.com Request Path: /"]
173
+ I, [2014-02-12T13:10:59.917694 #17570] INFO -- : 0.882ms: on_data @5
174
+ I, [2014-02-12T13:10:59.917884 #17570] INFO -- : 1.076ms: on_data @5
175
+ I, [2014-02-12T13:10:59.917991 #17570] INFO -- : 1.176ms: on_connect @5 experella1
176
+ I, [2014-02-12T13:10:59.918701 #17570] INFO -- : 1.888ms: on_response @5 from experella1
177
+ I, [2014-02-12T13:10:59.918940 #17570] INFO -- : 2.124ms: on_response @5 from experella1
178
+ I, [2014-02-12T13:10:59.919099 #17570] INFO -- : 2.285ms: on_finish @5 for experella1 responded? true
179
+ I, [2014-02-12T13:10:59.919145 #17570] INFO -- : 2.337ms: Request done! @5
180
+ I, [2014-02-12T13:10:59.919340 #17570] INFO -- : ["2.531ms: ", "Client connection unbound! @5"]
181
+ I, [2014-02-12T13:10:59.919931 #17570] INFO -- : Terminating experella-proxy
182
+ I, [2014-02-12T13:11:01.724575 #17538] INFO -- : should rechunk and stream Transfer-Encoding chunked responses
183
+ I, [2014-02-12T13:11:01.125718 #17573] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
184
+ I, [2014-02-12T13:11:01.125765 #17573] INFO -- : Backend accepts: {"request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$", "Host"=>"experella"}
185
+ I, [2014-02-12T13:11:01.125781 #17573] INFO -- : Backend mangles: nil
186
+ I, [2014-02-12T13:11:01.125811 #17573] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
187
+ I, [2014-02-12T13:11:01.125829 #17573] INFO -- : Backend accepts: {"request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$", "Host"=>"experella"}
188
+ I, [2014-02-12T13:11:01.125842 #17573] INFO -- : Backend mangles: nil
189
+ I, [2014-02-12T13:11:01.125871 #17573] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
190
+ I, [2014-02-12T13:11:01.125890 #17573] INFO -- : Backend accepts: {"request_url"=>"/(oneroute|anotherpath)($|/)", "Host"=>"experella"}
191
+ I, [2014-02-12T13:11:01.125902 #17573] INFO -- : Backend mangles: nil
192
+ I, [2014-02-12T13:11:01.125928 #17573] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
193
+ I, [2014-02-12T13:11:01.125944 #17573] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
194
+ I, [2014-02-12T13:11:01.125956 #17573] INFO -- : Backend mangles: nil
195
+ I, [2014-02-12T13:11:01.126065 #17573] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
196
+ I, [2014-02-12T13:11:01.126080 #17573] INFO -- : with options: {}
197
+ I, [2014-02-12T13:11:01.126135 #17573] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
198
+ I, [2014-02-12T13:11:01.126149 #17573] INFO -- : with options: {}
199
+ I, [2014-02-12T13:11:01.925768 #17573] INFO -- : 0.02ms: new Connection @5
200
+ I, [2014-02-12T13:11:01.926028 #17573] INFO -- : ["0.299ms: ", "new Request @5 Host: experella.com Request Path: /chunked"]
201
+ I, [2014-02-12T13:11:01.926497 #17573] INFO -- : 0.771ms: on_data @5
202
+ I, [2014-02-12T13:11:01.926626 #17573] INFO -- : 0.901ms: on_connect @5 experella1
203
+ I, [2014-02-12T13:11:01.926984 #17573] INFO -- : 1.247ms: on_response @5 from experella1
204
+ I, [2014-02-12T13:11:01.927266 #17573] INFO -- : 1.534ms: on_finish @5 for experella1 responded? true
205
+ I, [2014-02-12T13:11:01.927316 #17573] INFO -- : 1.591ms: Request done! @5
206
+ I, [2014-02-12T13:11:01.927515 #17573] INFO -- : ["1.789ms: ", "Client connection unbound! @5"]
207
+ I, [2014-02-12T13:11:01.927827 #17573] INFO -- : Terminating experella-proxy
208
+ I, [2014-02-12T13:11:03.736684 #17538] INFO -- : should accept requests on all set proxy domains
209
+ I, [2014-02-12T13:11:03.138359 #17581] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
210
+ I, [2014-02-12T13:11:03.138411 #17581] INFO -- : Backend accepts: {"request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$", "Host"=>"experella"}
211
+ I, [2014-02-12T13:11:03.138428 #17581] INFO -- : Backend mangles: nil
212
+ I, [2014-02-12T13:11:03.138462 #17581] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
213
+ I, [2014-02-12T13:11:03.138480 #17581] INFO -- : Backend accepts: {"request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$", "Host"=>"experella"}
214
+ I, [2014-02-12T13:11:03.138493 #17581] INFO -- : Backend mangles: nil
215
+ I, [2014-02-12T13:11:03.138522 #17581] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
216
+ I, [2014-02-12T13:11:03.138540 #17581] INFO -- : Backend accepts: {"request_url"=>"/(oneroute|anotherpath)($|/)", "Host"=>"experella"}
217
+ I, [2014-02-12T13:11:03.138553 #17581] INFO -- : Backend mangles: nil
218
+ I, [2014-02-12T13:11:03.138580 #17581] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
219
+ I, [2014-02-12T13:11:03.138596 #17581] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
220
+ I, [2014-02-12T13:11:03.138608 #17581] INFO -- : Backend mangles: nil
221
+ I, [2014-02-12T13:11:03.138721 #17581] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
222
+ I, [2014-02-12T13:11:03.138737 #17581] INFO -- : with options: {}
223
+ I, [2014-02-12T13:11:03.138826 #17581] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
224
+ I, [2014-02-12T13:11:03.138841 #17581] INFO -- : with options: {}
225
+ I, [2014-02-12T13:11:03.937877 #17581] INFO -- : 0.02ms: new Connection @5
226
+ I, [2014-02-12T13:11:03.938095 #17581] INFO -- : 0.011ms: new Connection @7
227
+ I, [2014-02-12T13:11:03.938549 #17581] INFO -- : ["0.701ms: ", "new Request @5 Host: experella.com Request Path: /"]
228
+ I, [2014-02-12T13:11:03.939053 #17581] INFO -- : 1.217ms: on_data @5
229
+ I, [2014-02-12T13:11:03.939242 #17581] INFO -- : ["1.161ms: ", "new Request @7 Host: experella.com Request Path: /"]
230
+ I, [2014-02-12T13:11:03.939570 #17581] INFO -- : 1.49ms: on_data @7
231
+ I, [2014-02-12T13:11:03.939680 #17581] INFO -- : 1.845ms: on_connect @5 experella1
232
+ I, [2014-02-12T13:11:03.939755 #17581] INFO -- : 1.675ms: on_connect @7 experella2
233
+ I, [2014-02-12T13:11:03.940111 #17581] INFO -- : 2.263ms: on_response @5 from experella1
234
+ I, [2014-02-12T13:11:03.940298 #17581] INFO -- : 2.215ms: on_response @7 from experella2
235
+ I, [2014-02-12T13:11:03.940516 #17581] INFO -- : 2.674ms: on_finish @5 for experella1 responded? true
236
+ I, [2014-02-12T13:11:03.940564 #17581] INFO -- : 2.729ms: Request done! @5
237
+ I, [2014-02-12T13:11:03.940751 #17581] INFO -- : 2.667ms: on_finish @7 for experella2 responded? true
238
+ I, [2014-02-12T13:11:03.940796 #17581] INFO -- : 2.717ms: Request done! @7
239
+ I, [2014-02-12T13:11:03.940974 #17581] INFO -- : ["3.137ms: ", "Client connection unbound! @5"]
240
+ I, [2014-02-12T13:11:03.941114 #17581] INFO -- : Terminating experella-proxy
241
+ I, [2014-02-12T13:11:03.941070 #17581] INFO -- : ["2.989ms: ", "Client connection unbound! @7"]
242
+ I, [2014-02-12T13:11:05.744728 #17538] INFO -- : should get response from the echoserver via the proxy
243
+ I, [2014-02-12T13:11:05.151723 #17584] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
244
+ I, [2014-02-12T13:11:05.151772 #17584] INFO -- : Backend accepts: {"request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$", "Host"=>"experella"}
245
+ I, [2014-02-12T13:11:05.151788 #17584] INFO -- : Backend mangles: nil
246
+ I, [2014-02-12T13:11:05.151819 #17584] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
247
+ I, [2014-02-12T13:11:05.151836 #17584] INFO -- : Backend accepts: {"request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$", "Host"=>"experella"}
248
+ I, [2014-02-12T13:11:05.151849 #17584] INFO -- : Backend mangles: nil
249
+ I, [2014-02-12T13:11:05.151877 #17584] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
250
+ I, [2014-02-12T13:11:05.151894 #17584] INFO -- : Backend accepts: {"request_url"=>"/(oneroute|anotherpath)($|/)", "Host"=>"experella"}
251
+ I, [2014-02-12T13:11:05.151907 #17584] INFO -- : Backend mangles: nil
252
+ I, [2014-02-12T13:11:05.151933 #17584] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
253
+ I, [2014-02-12T13:11:05.151948 #17584] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
254
+ I, [2014-02-12T13:11:05.151960 #17584] INFO -- : Backend mangles: nil
255
+ I, [2014-02-12T13:11:05.152067 #17584] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
256
+ I, [2014-02-12T13:11:05.152082 #17584] INFO -- : with options: {}
257
+ I, [2014-02-12T13:11:05.152136 #17584] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
258
+ I, [2014-02-12T13:11:05.152150 #17584] INFO -- : with options: {}
259
+ I, [2014-02-12T13:11:05.945893 #17584] INFO -- : 0.019ms: new Connection @5
260
+ I, [2014-02-12T13:11:05.946155 #17584] INFO -- : ["0.298ms: ", "new Request @5 Host: experella.com Request Path: /"]
261
+ I, [2014-02-12T13:11:05.946616 #17584] INFO -- : 0.762ms: on_data @5
262
+ I, [2014-02-12T13:11:05.946745 #17584] INFO -- : 0.891ms: on_connect @5 experella1
263
+ I, [2014-02-12T13:11:05.947112 #17584] INFO -- : 1.247ms: on_response @5 from experella1
264
+ I, [2014-02-12T13:11:05.947360 #17584] INFO -- : 1.5ms: on_finish @5 for experella1 responded? true
265
+ I, [2014-02-12T13:11:05.947409 #17584] INFO -- : 1.557ms: Request done! @5
266
+ I, [2014-02-12T13:11:05.947611 #17584] INFO -- : ["1.756ms: ", "Client connection unbound! @5"]
267
+ I, [2014-02-12T13:11:05.947843 #17584] INFO -- : Terminating experella-proxy
268
+ I, [2014-02-12T13:11:07.752691 #17538] INFO -- : should respond with 400 on malformed request
269
+ I, [2014-02-12T13:11:07.157394 #17589] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
270
+ I, [2014-02-12T13:11:07.157441 #17589] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
271
+ I, [2014-02-12T13:11:07.157457 #17589] INFO -- : Backend mangles: nil
272
+ I, [2014-02-12T13:11:07.157488 #17589] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
273
+ I, [2014-02-12T13:11:07.157506 #17589] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
274
+ I, [2014-02-12T13:11:07.157519 #17589] INFO -- : Backend mangles: nil
275
+ I, [2014-02-12T13:11:07.157547 #17589] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
276
+ I, [2014-02-12T13:11:07.157565 #17589] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"/(oneroute|anotherpath)($|/)"}
277
+ I, [2014-02-12T13:11:07.157578 #17589] INFO -- : Backend mangles: nil
278
+ I, [2014-02-12T13:11:07.157604 #17589] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
279
+ I, [2014-02-12T13:11:07.157619 #17589] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
280
+ I, [2014-02-12T13:11:07.157631 #17589] INFO -- : Backend mangles: nil
281
+ I, [2014-02-12T13:11:07.157738 #17589] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
282
+ I, [2014-02-12T13:11:07.157753 #17589] INFO -- : with options: {}
283
+ I, [2014-02-12T13:11:07.157808 #17589] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
284
+ I, [2014-02-12T13:11:07.157822 #17589] INFO -- : with options: {}
285
+ I, [2014-02-12T13:11:07.953904 #17589] INFO -- : 0.021ms: new Connection @5
286
+ I, [2014-02-12T13:11:07.954176 #17589] INFO -- : ["0.309ms: ", "new Request @5 Host: experella.com Request Path: /"]
287
+ W, [2014-02-12T13:11:07.954710 #17589] WARN -- : ["0.846ms: ", "Parser error caused by invalid request data", "@5"]
288
+ I, [2014-02-12T13:11:07.954848 #17589] INFO -- : 0.986ms: on_data @5
289
+ I, [2014-02-12T13:11:07.955020 #17589] INFO -- : 1.158ms: on_connect @5 experella1
290
+ I, [2014-02-12T13:11:07.955098 #17589] INFO -- : ["1.235ms: ", "Client connection unbound! @5"]
291
+ I, [2014-02-12T13:11:07.955251 #17589] INFO -- : 1.382ms: on_finish @5 for experella1 responded? false
292
+ I, [2014-02-12T13:11:07.955295 #17589] INFO -- : 1.434ms: Request done! @5
293
+ I, [2014-02-12T13:11:07.955622 #17589] INFO -- : Terminating experella-proxy
294
+ I, [2014-02-12T13:11:09.760571 #17538] INFO -- : should handle pipelined requests correctly
295
+ I, [2014-02-12T13:11:09.163549 #17592] INFO -- : Initializing backend experella1 at 127.0.0.10:7654 with concurrency 1
296
+ I, [2014-02-12T13:11:09.163597 #17592] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
297
+ I, [2014-02-12T13:11:09.163613 #17592] INFO -- : Backend mangles: nil
298
+ I, [2014-02-12T13:11:09.163644 #17592] INFO -- : Initializing backend experella2 at 127.0.0.10:7654 with concurrency 2
299
+ I, [2014-02-12T13:11:09.163662 #17592] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"^((?!/(oneroute|anotherpath)($|/)).)*$"}
300
+ I, [2014-02-12T13:11:09.163674 #17592] INFO -- : Backend mangles: nil
301
+ I, [2014-02-12T13:11:09.163702 #17592] INFO -- : Initializing backend exp proxy at 127.0.0.11:7655 with concurrency 1
302
+ I, [2014-02-12T13:11:09.163721 #17592] INFO -- : Backend accepts: {"Host"=>"experella", "request_url"=>"/(oneroute|anotherpath)($|/)"}
303
+ I, [2014-02-12T13:11:09.163733 #17592] INFO -- : Backend mangles: nil
304
+ I, [2014-02-12T13:11:09.163760 #17592] INFO -- : Initializing backend web at 0.0.0.0:80 with concurrency 1000
305
+ I, [2014-02-12T13:11:09.163775 #17592] INFO -- : Backend accepts: {"Host"=>"^((?!(experella|127)).)*$"}
306
+ I, [2014-02-12T13:11:09.163787 #17592] INFO -- : Backend mangles: nil
307
+ I, [2014-02-12T13:11:09.163893 #17592] INFO -- : Launching experella-proxy at 127.0.0.1:6896 with 6.0s timeout...
308
+ I, [2014-02-12T13:11:09.163908 #17592] INFO -- : with options: {}
309
+ I, [2014-02-12T13:11:09.163964 #17592] INFO -- : Launching experella-proxy at 127.0.0.2:7315 with 6.0s timeout...
310
+ I, [2014-02-12T13:11:09.163978 #17592] INFO -- : with options: {}
311
+ I, [2014-02-12T13:11:09.961768 #17592] INFO -- : 0.02ms: new Connection @5
312
+ I, [2014-02-12T13:11:09.962353 #17592] INFO -- : ["0.619ms: ", "new Request @5 Host: experella.com Request Path: /"]
313
+ I, [2014-02-12T13:11:09.962863 #17592] INFO -- : ["1.138ms: pipelined request"]
314
+ I, [2014-02-12T13:11:09.962941 #17592] INFO -- : ["1.211ms: ", "new Request @5 Host: experella.com Request Path: /about/"]
315
+ I, [2014-02-12T13:11:09.963138 #17592] INFO -- : ["1.414ms: pipelined request"]
316
+ I, [2014-02-12T13:11:09.963205 #17592] INFO -- : ["1.479ms: ", "new Request @5 Host: experella.com Request Path: /"]
317
+ I, [2014-02-12T13:11:09.963366 #17592] INFO -- : 1.641ms: on_data @5
318
+ I, [2014-02-12T13:11:09.963495 #17592] INFO -- : 1.769ms: on_connect @5 experella1
319
+ I, [2014-02-12T13:11:09.963798 #17592] INFO -- : 2.068ms: on_response @5 from experella1
320
+ I, [2014-02-12T13:11:09.964026 #17592] INFO -- : 2.294ms: on_finish @5 for experella1 responded? true
321
+ I, [2014-02-12T13:11:09.964082 #17592] INFO -- : 2.357ms: Request done! @5
322
+ I, [2014-02-12T13:11:09.964394 #17592] INFO -- : 2.668ms: on_connect @5 experella2
323
+ I, [2014-02-12T13:11:09.964681 #17592] INFO -- : 2.944ms: on_response @5 from experella2
324
+ I, [2014-02-12T13:11:09.964916 #17592] INFO -- : 3.184ms: on_finish @5 for experella2 responded? true
325
+ I, [2014-02-12T13:11:09.964964 #17592] INFO -- : 3.24ms: Request done! @5
326
+ I, [2014-02-12T13:11:09.965288 #17592] INFO -- : 3.563ms: on_connect @5 experella1
327
+ I, [2014-02-12T13:11:09.965576 #17592] INFO -- : 3.839ms: on_response @5 from experella1
328
+ I, [2014-02-12T13:11:09.965807 #17592] INFO -- : 4.075ms: on_finish @5 for experella1 responded? true
329
+ I, [2014-02-12T13:11:09.965856 #17592] INFO -- : 4.131ms: Request done! @5
330
+ I, [2014-02-12T13:11:09.966067 #17592] INFO -- : ["4.339ms: ", "Client connection unbound! @5"]
331
+ I, [2014-02-12T13:11:09.966277 #17592] INFO -- : Terminating experella-proxy
@@ -0,0 +1,34 @@
1
+ require 'logger'
2
+
3
+ request_part = "oneroute|anotherpath"
4
+
5
+ backend( :name => "experella1", :host => "127.0.0.10", :port => "7654", :concurrency => "1",
6
+ :accepts => {"Host" => "experella", "request_url" => "^((?!/(#{request_part})($|/)).)*$"}
7
+ )
8
+
9
+ backend( :name => "experella2", :host => "127.0.0.10", :port => "7654", :concurrency => "2",
10
+ :accepts => {"Host" => "experella", "request_url" => "^((?!/(#{request_part})($|/)).)*$"}
11
+ )
12
+
13
+ backend( :name => "exp proxy", :host => "127.0.0.11", :port => "7655", :concurrency => "1",
14
+ :accepts => {"Host" => "experella", "request_url" => "/(#{request_part})($|/)"}
15
+ )
16
+
17
+ backend( :name => "web", :host => "0.0.0.0", :port => "80", :concurrency => "1000",
18
+ :accepts => {"Host" => "^((?!(experella|127)).)*$"}
19
+ )
20
+
21
+ # don't forget EM-HTTP-Request (used in experella-proxy specs) default timeout is 10.0
22
+ set_timeout 6.0
23
+
24
+ set_proxy(:host => "127.0.0.1", :port => 6896)
25
+ set_proxy(:host => "127.0.0.2", :port => 7315)
26
+
27
+ # little cheating with join_config_path method :)
28
+ set_logger Logger.new(File.open(join_config_path("spec.log"), "a+"))
29
+ logger.level = Logger::INFO
30
+
31
+ set_error_pages(404, "404.html")
32
+ set_error_pages(503, "503.html")
33
+
34
+