Just let me tell that the tora/fastcgi solution works perfectly well:
https://github.com/HaxeFoundation/tora.git
neko tora -fcgi
and such fastcgi configuration
location /${url_prefix} {
root ${root};
rewrite ^/${url_prefix}/(.*)$ /$1 break;
fastcgi_pass localhost:6666;
fastcgi_param SCRIPT_FILENAME $document_root/index.n;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING q=$uri&$query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
}
works perfectly well and can replace PHP easily IMHO.
I tried using PHP backend once, but in the end syncing all the files and
the slow processing time only satisfied me for testing purposes.
Marc Weber