Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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: howtoforge.com/… And it works flawless! –  Jona Koudijs Aug 6 '12 at 10:25
add comment

Your Answer

 
discard

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.