I had a hopefully quick question regarding how to successfully execute CGI files under the NGINX web server with FAST CGI. Right now, I have Nginx successfully set up and I also believe that I have FAST CGI set up as when I run a .php file with phpinfo(), I am directed to this page which states that my server API is indeed FPM/FASTCGI.
On a side note, when the fcgi file is being called on, solely the contents of the fcgi file are being printed. All the code is being printed out. For example, I looked at the website http://www.cgi101.com/book/ch1/text.html and for Program 1-2: second.cgi - Hello World Program 2, I am getting:
when the output should be http://www.cgi101.com/book/ch1/second.cgi.
I researched this issue but there were only solutions for apache, nothing for nginx. Anyone have any experience with this in the past and how to go about it?