for(i = 3; i < FD_SETSIZE; i++)
close(i);
execvp(*progspec, progspec);
+ flog(LOG_ERR, "callscgi: %s: %s", *progspec, strerror(errno));
exit(127);
}
close(fd);
dup2(fd, 0);
close(fd);
execvp(*progspec, progspec);
+ flog(LOG_ERR, "callscgi: %s: %s", *progspec, strerror(errno));
exit(127);
}
}
bufaddenv(dst, "SERVER_NAME", "%s", h);
if((h = getheader(req, "X-Ash-Server-Port")) != NULL)
bufaddenv(dst, "SERVER_PORT", "%s", h);
- if(((h = getheader(req, "X-Ash-Server-Protocol")) != NULL) && !strcmp(h, "https"))
+ if(((h = getheader(req, "X-Ash-Protocol")) != NULL) && !strcmp(h, "https"))
bufaddenv(dst, "HTTPS", "on");
if((h = getheader(req, "X-Ash-Address")) != NULL)
bufaddenv(dst, "REMOTE_ADDR", "%s", h);