lighttpd forum lighty > Lighttpd 1.4.19 & Windows & FastCGI

Posted by David Graf
on 16.07.2008 16:31
Hello

I read in this forum, that older Lighttpd versions have problems with 
FastCGI on
Windows. What about Lighttpd 1.4.19? Are these problems fixed?

I'm developing a FastCGI application on C++ which should run on Linux
and Windows. On Linux, it is running perfectly, but on windows, I always
get a 404 HTTP error.

The FCGI part of the config file on Linux is:

$HTTP["host"] =~ ".*" {

  url.rewrite = (
    "^(/.*)$" => "/applicationname.fcgi/%1/$1"
  )
  fastcgi.server = (
    ".fcgi" => (
      "applicationname" => (
        "bin-path" => ".../fcgi/applicationname.fcgi",
        "host" => "127.0.0.1",
        "port" => 8080,
        "bin-environment" => ("..." => "...")
      )
    )
  )
}

Under Windows, the fcgi script is at least invoked once when the server
is started up, but afterwards, when a http request is handled, the fcgi
part of the config file is somehow completely ignored and I always the
same 404 error.

Remark: I compiled lighttpd myself on cygwin.