+static void handle404(struct hthead *req, int fd, char *path)
+{
+ struct child *ch;
+ struct config *ccf;
+ char *tmp;
+
+ tmp = sstrdup(path);
+ ch = findchild(tmp, ".notfound", &ccf);
+ if(childhandle(ch, req, fd, chinit, ccf?ccf->path:NULL))
+ simpleerror(fd, 500, "Server Error", "The request handler crashed.");
+ free(tmp);
+}
+