1 Mar 2004 15:56
Missing environment variables with FastCGI on Apache 2.0.48/Win32
Hello all, I am experiencing a problem with FastCGI based applications on Apache 2.0.48/Windows NT. Basically it appears that REQUEST_METHOD, CONTENT_LENGTH and the other CGI variables our apps expect are not made available. I wrote a simple FCGI app that prints out environ, and only these three variables are defined : SystemRoot=C:\WINNT _FCGI_SHUTDOWN_EVENT_=1240 _FCGI_MUTEX_=1236 With a vanilla CGI program, the same code shows environ holds 28 variables... The same apps work like a charm on Linux (Fedora Core 1) and I must say with the same combination of software (apache 2.0.48, mod_fastcgi 2.4.0, fcgi 2.4.0). The configuration file is very similar to the "typical httpd.conf" described in the FAQ, and is basically what we use on Linux. I tried the dll that's in fastcgi.com/dist as well as compiling mod_fastcgi 2.4.2 and the snapshot dated 20.01.2004 with VC++ 6 (in Debug and Release), but this didn't make any difference... Two other things I tried were - a FastCgiServer directive with "-initial-env REQUEST_METHOD" but REQUEST_METHOD remains empty.(Continue reading)
RSS Feed