October 31, 2012 11:40AM
i think it would be a bug.
it's ok, if i set the document root as the top level folder,or like your problem too.

location ~ \.php$ {
root /web; # ok
#root /web/htdocs; # your problem
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

i do't know how to deal with.
the version is nginx-1.2.4
Subject Author Posted

FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

chatchat September 23, 2012 07:40PM

Re: FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

Sergey Budnevitch September 24, 2012 06:32AM

Re: FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

cmpan October 31, 2012 11:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready