9 # Automatically reap all children that die for any reason.
10 signal.signal(signal.SIGCHLD, signal.SIG_IGN)
14 # Strip port specification
15 dname = req["Host"].split(':')[0]
17 path = os.path.join(root, dname)
18 if os.path.isdir(path):
19 if dname not in children:
20 children[dname] = util.pchild(["dirplex", path], autorespawn = True)
21 children[dname].passreq(req)
23 util.respond(req, "No such host is configured.\n", status = "404 Not Found", ctype = "text/plain")