Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer
Thanks, it was not really mentioned in the guides of converting Nagios from Apache2 to Nginx. I just followed this guide:… And it works flawless! – Jona Koudijs Aug 6 '12 at 10:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.