X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fcallscgi.c;h=6adccc5d00ad9a45cd98658db3745628d96d7492;hb=c35bb77a938bbabe894da409e72c138a11bd302e;hp=86abb5b4a27a5e1d4e53f2834259ea40d900def6;hpb=9c86e33675aa670c4e9ee8da994a682ee676f492;p=ashd.git diff --git a/src/callscgi.c b/src/callscgi.c index 86abb5b..6adccc5 100644 --- a/src/callscgi.c +++ b/src/callscgi.c @@ -194,6 +194,7 @@ static void startlisten(void) 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); @@ -217,6 +218,7 @@ static void startnolisten(void) dup2(fd, 0); close(fd); execvp(*progspec, progspec); + flog(LOG_ERR, "callscgi: %s: %s", *progspec, strerror(errno)); exit(127); } } @@ -430,7 +432,7 @@ static void mkcgienv(struct hthead *req, struct charbuf *dst) 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);