Talk:NginxSimpleCGI
No, we actually don't: see http://nginx.localdomain.pl/wiki/FcgiWrap for a pure C CGI-to-FastCGI gateway -- Grzegorz Nosek (and yes, a talk feature would be useful)
I tried the script above. It kept giving me forbidden. I added some debug to the code and I found it was checking permissions of DOCUMENT_ROOT+SCRIPT_NAME but without adding a / so you have to make sure DOCUMENT_ROOT has a trailing slash. or at least this was how I got it to work. Unfortunately the site above has no contact information on it. the register doesnt work on trac so i cant report bugs. NGINX really needs a decent central repository where all the projects/subprojects can live :/ (also this wiki would be better with talk pages, perhaps we can move to mediawiki ?) - exobuzz
Would someone merge the script below with the previous version that handled POST requests properly: http://wiki.codemongers.com/NginxSimpleCGI?action=recall&rev=10 --I really wish MoinMoin had Talk features. The old POST code worked fine for me but try Denis's and see it it works for you... -joey
I see that you merged the part that reads data from the client but not the part that feeds in to the CGI script's stdin, which actually makes a difference. Some scripts do require POST'ed data to arrive through stdin, e.g., those that process multipart forms (attachments), so it matters. The script that I've submitted has been in production for over a month without any problems. -- denis
The following metadata was found in MoinMoin that could not be converted to a useful value in MediaWiki:
- &daemonize;: we don't daemonize when running under runsv
- this: keeps the program alive or something after exec'ing perl scripts
- $socket: = FCGI::OpenSocket( "/var/run/nginx/perl_cgi-dispatch.sock", 10 ); #use UNIX sockets - user running this script must have w access to the 'nginx' folder!!
- foreach: $item (keys %ENV) { delete $ENV{$item}; }
- !/usr/bin/perl: -w












