59 |
*/ |
*/ |
60 |
common_cgi_env[index++] = env_gen_extra("PATH", |
common_cgi_env[index++] = env_gen_extra("PATH", |
61 |
((cgi_path != NULL) ? cgi_path : DEFAULT_PATH), 0); |
((cgi_path != NULL) ? cgi_path : DEFAULT_PATH), 0); |
62 |
common_cgi_env[index++] = env_gen_extra("SERVER_SOFTWARE", SERVER_VERSION, 0); |
common_cgi_env[index++] = env_gen_extra("SERVER_SOFTWARE", SERVER_NAME"/"SERVER_VERSION, 0); |
63 |
common_cgi_env[index++] = env_gen_extra("GATEWAY_INTERFACE", CGI_VERSION, 0); |
common_cgi_env[index++] = env_gen_extra("GATEWAY_INTERFACE", CGI_VERSION, 0); |
64 |
|
|
65 |
/* removed the SERVER_PORT which may change due to SSL support |
/* removed the SERVER_PORT which may change due to SSL support |
518 |
if (req->is_cgi==INDEXER_CGI) |
if (req->is_cgi==INDEXER_CGI) |
519 |
execl(dirmaker, dirmaker, req->pathname, req->request_uri, |
execl(dirmaker, dirmaker, req->pathname, req->request_uri, |
520 |
NULL); |
NULL); |
|
#ifdef GUNZIP |
|
|
else /* GUNZIP_CGI */ |
|
|
execl(GUNZIP, GUNZIP, "--stdout", "--decompress", |
|
|
req->pathname, NULL); |
|
|
#endif |
|
521 |
} |
} |
522 |
/* execve failed */ |
/* execve failed */ |
523 |
WARN(req->pathname); |
WARN(req->pathname); |