Binary cgi script download instead of executing


nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Hi,

On Mon, May 2, 2016, at 17:55, mayak wrote:

hi all,
i have simply broken my brain trying to execute a cgi script that
requires no interpreter – just execute the cgi binary with the query
portion of the url, and it spits out html content.
no matter what i do, i always end up with ELF> GARBAGE – the cgi
script is downloading and not executing. I’ve googled it to death, and
cannot find how to do this.
thanks
m

nginx doesn’t execute anything. In your case, something like
slowcgi/thttpd is needed so nginx can talk to it.

Hi.

Am 02-05-2016 10:55, schrieb mayak:

hi all,

i have simply broken my brain trying to execute a cgi script that
requires no interpreter – just execute the cgi binary with the query
portion of the url, and it spits out html content.

no matter what i do, i always end up with ELF> GARBAGE – the cgi
script is downloading and not executing. I’ve googled it to death, and
cannot find how to do this.

please take a look into this.

http://uwsgi.readthedocs.io/en/latest/CGI.html?highlight=Nginx

As Edho written nginx does not execute anything by default.

What I’m wondering why the first hit shows a possible solution, does
this solution does not work for you?

https://startpage.com/do/search?q=nginx+cgi+run

Cheers Aleks