# Requests for /status and all subpaths => origin 0
# (query strings allowed)
if (req.url ~ "^/status(/[^?]*)?(\?.*)?$") {
  set req.backend = F_origin_0;

# Requests for exactly / => origin 1
# (query strings not allowed)
} else if (req.url == "/") {
  set req.backend = F_origin_1;

# Unrecognised path => synthethic 404 error
} else {
  error 601;
}