Question

Is it possible to parse *.cgi files as php, and how?

        location ~ \.php$ {
      fastcgi_pass   127.0.0.1:9000;
      fastcgi_index  index.php;
      fastcgi_buffer_size 128k;
      fastcgi_buffers 4 256k;
      fastcgi_param  SCRIPT_FILENAME  /srv/htdocs$fastcgi_script_name;
      include        /etc/nginx/fastcgi_params;
    }  

This is for my .php files. Just rename to *.cgi dosn't work....

Was it helpful?

Solution

Can you change the first line to be location ~ \.cgi$? That would be my first guess

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top