cgi.d - fastcgi - LightTPD is not cooperative

Sycam_Inc via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Oct 2 06:53:46 PDT 2014


On Thursday, 2 October 2014 at 13:25:14 UTC, Adam D. Ruppe wrote:
> Try running the program yourself with a port argument
>
> yourprogram.exe --port 3000
>
> for example, then have lighttpd configured to connect to that 
> port for the application. That's what I had to do for nginx on 
> Windows, lighttpd might be the same thing.

Ok That Worked, but the GenericMain never runs

module main;


//import std.stdio;
import arsd.cgi;

void Req(Cgi c)
{
	new File("C:/c/a.text").write("hello");
	c.write("This is a test");
	c.close();
}

mixin GenericMain!(Req);

when running in the browser the page just continues to load and 
the lighttpd console shows no output from it and it dosent write 
anything in the file.


More information about the Digitalmars-d-learn mailing list