Hacker News new | ask | show | jobs
by ausjke 2081 days ago
I would use lighttpd for that as it supports fcgi natively, nginx is really odd for fcgi in my opinion, not to mention, lighttpd is only 4MB in memory
2 comments

I _think_ I checked it but didn't find any way to run cgi apps, only fastcgi (maybe I should check again, I'm not 100% sure about that).

Although, now that I understand fastcgi better, I guess fcgiwrap could be adapted for lighttpd, if it doesn't work for it as is (my package manager's description mentions explicitly it's for nginx).

Thanks for the advice, I'll dig that.

lighttpd works well for cgi directly https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_Mod...

and for fcgi as well, without fcgiwrap at all: https://github.com/jerryvig/lighttpd-fastcgi-c

nginx can do fcgi natively too, fcgiwrap is a fcgi application that forwards requests to cgi scripts.