8 signal.signal(signal.SIGCHLD, signal.SIG_IGN)
12 # Strip port specification
13 dname = req["Host"].split(':')[0]
15 path = os.path.join(root, dname)
16 if os.path.isdir(path):
17 if dname not in children:
18 children[dname] = util.pchild(["dirplex", path], autorespawn = True)
19 children[dname].passreq(req)
21 util.respond(req, "No such host in configured.\n", status = "404 Not Found", ctype = "text/plain")