How to configure Nginx + CGI?
滿天的星座
滿天的星座 2017-05-16 17:28:22
0
1
640

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.

滿天的星座
滿天的星座

reply all(1)
阿神

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!