Forum

hiawatha.conf for C

Chuong
23 November 2015, 22:50
Hi,

Can anyone give me an example of hiawatha.conf for C? I compiled and run the daemon https://www.hiawatha-webserver.org/files/fastcgi/fastcgi.c.txt, but I do not know how to config and test hiawatha with this C daemon.
Hugo Leisink
24 November 2015, 19:37
The fastcgi.c demo is a daemon that listens to port 2005. Make Hiawatha connect to it and use the FastCGI daemon in a virtual host.
FastCGIserver {
FastCGIid = demo_fcgi
ConnectTo = 127.0.0.1:2005
}

UrlToolkit {
ToolkitID = demo_toolkit
Match ^/demo UseFastCGI demo_fcgi
}

VirtualHost {
...
UseToolkit = demo_toolkit
}


This will make the url /demo connect to the FastCGI demo daemon.
Chuong
26 November 2015, 11:05
Thank you very much. It is working now
This topic has been closed.