search

Home  >  Q&A  >  body text

How to configure Nginx + CGI?

Now we need to extend a module that supports CGI in the WEB environment where nginx, PHP, and MYSQL have been installed. I followed the online reference documentation and successfully installed CGI. The key is that when executing the CGI file, it will continue to redirect, and after a while it will become: 502 Bad Gateway

It is normal to run PHP, but later a strange foreigner made a plug-in, and the file suffix was .cgi. The server had to support cgi, so I asked everyone.

I don’t know what needs to be configured to execute CGI files normally, please share your experience.

My configuration is configured according to this blog http://hily.me/blog/2010/01/nginx-fcgi-install/.

My system information:
centos 64-bit.

滿天的星座滿天的星座2781 days ago689

reply all(1)I'll reply

  • 阿神

    阿神2017-05-16 17:30:22

    Finally solved this problem today. There is no problem according to the configuration provided on the Internet. The problem lies in the process daemon script.

    reply
    0
  • Cancelreply