0

Webserver with Nginx 1.1.19 and PHP 5 FPM work great with serving PHP and showing output of mysql data.

I want to embed nagios in my application and so I needed .cgi scripts for the first time on this server. This didn't work. Then I made a simple echo hello world .cgi script and I still get 'Access Denied'.

I gave the file and all the folders above it Executive permissions (chmod +x)

1 Answer 1

1

Nginx does not currently support classic cgi. It does support fastcgi, though.

Most solutions involve using a wrapper script of some kind to make a cgi script into a fcgi script.

1
  • Thanks, it was not really mentioned in the guides of converting Nagios from Apache2 to Nginx. I just followed this guide: howtoforge.com/… And it works flawless! Aug 6, 2012 at 10:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .