mirror of https://github.com/nealey/woozle.org.git
fastCGI
This commit is contained in:
parent
a50f89f76b
commit
78e3d7aafe
|
@ -35,7 +35,7 @@ main(int argc, char *argv[])
|
||||||
if (0 == strcmp(ext, ".php")) {
|
if (0 == strcmp(ext, ".php")) {
|
||||||
setenv("SCRIPT_FILENAME", filename, 1);
|
setenv("SCRIPT_FILENAME", filename, 1);
|
||||||
setenv("REDIRECT_STATUS", "fuck me", 1);
|
setenv("REDIRECT_STATUS", "fuck me", 1);
|
||||||
execl("/usr/bin/php-cgi", filename, NULL);
|
execl("/usr/bin/cgi-fcgi", "cgi-fcgi", "-bind", "-connect", ":8823", NULL);
|
||||||
} else if (strstr(filename, "/config/") ||
|
} else if (strstr(filename, "/config/") ||
|
||||||
strstr(filename, "/logs/") ||
|
strstr(filename, "/logs/") ||
|
||||||
strstr(filename, "/temp/")) {
|
strstr(filename, "/temp/")) {
|
||||||
|
|
Loading…
Reference in New Issue