FAQ / Routing to remote hosts / Q0307
| /Q0301 /Q0302 /Q0303 /Q0304 /Q0305 /Q0306 /Q0307 /Q0308 /Q0309 /Q0310 /Q0311 /Q0312 /Q0313 /Q0314 /Q0315 /Q0316 /Q0317 /Q0318 /Q0319 /Q0320 /Q0321 /Q0322 |
Q0307
Question
The route_list setting ^foo$:^bar$ $domain in a manualroute router does not work.
Answer
The first thing in a route_list item is a single pattern, not a list of patterns. You need to write that as ^(foo|bar)$ $domain. Alternatively, you could use several items and write
route_list = foo $domain; bar $domain
Note the semicolon separator. This is because the second thing in each item can itself be a colon-separated list of hosts.
| /Q0301 /Q0302 /Q0303 /Q0304 /Q0305 /Q0306 /Q0307 /Q0308 /Q0309 /Q0310 /Q0311 /Q0312 /Q0313 /Q0314 /Q0315 /Q0316 /Q0317 /Q0318 /Q0319 /Q0320 /Q0321 /Q0322 |
FAQ / Routing to remote hosts / Q0307
