Hiawatha uses a FastCGI server based on the extension of the request URL. The trick is to use URL rewriting for the specified directories:
FastCGIserver {
FastCGIid = FCGI1
Extension = fcgi1
ConnectTo = 127.0.0.1:81
}
FastCGIserver {
FastCGIid = FCGI2
Extension = fcgi2
ConnectTo = 127.0.0.1:82
}
UrlRewrite {
RewriteId = my_rewrite
Match ^/first/.* Rewrite /first/index.cgi1
Match ^/seconds/.* Rewrite /seconds/index.cgi2
}
VirtualHost [
Hostname = www.website.com
WebsiteRoot = /path/to/webroot
FastCGI = FCGI1, FCGI2
RewriteURL = my_rewrite
}
I know it looks like a hack. My idea for the next release is to make this more 'clean'.