0

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

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.