# Cut URL down to first directory, or just / if (req.url.path ~ "^(/[^/\?]*)" && table.contains(ttls, re.group.1)) { set beresp.ttl = std.atoi(table.lookup(ttls, re.group.1, "30")); return(deliver); }