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.
阿神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.