Post Reply 
fedora 14 nginx default setting error
04-24-2011, 10:48 PM
Post: #1
Sad fedora 14 nginx default setting error
i hit a error of fedora 14 nginx default setting

there is a line about php cgi proxy like this
Code:
fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;

it should be
Code:
fastcgi_param  SCRIPT_FILENAME  /$document_root$fastcgi_script_name;

it display a blank page of php whe you are use the default setting

i have take a whole day to find it and fix it

it is badly hard to find


mark it here, and it may be help to you.Dodgy



whole day time waste....Angry

post with Fedora 18 since 2013-02-06
SMS me +1 936-337-4971
User Tools
Quote this message in a reply


04-25-2011, 01:00 PM
Post: #2
RE: fedora 14 nginx default setting error
it is not a fedora default setting

it is the nginx default setting

why will they set a fault ?

post with Fedora 18 since 2013-02-06
SMS me +1 936-337-4971
User Tools
Quote this message in a reply
04-26-2011, 02:20 AM (This post was last modified: 04-26-2011 02:22 AM by Infinity.)
Post: #3
RE: fedora 14 nginx default setting error
Oh, I can fix that. I have forgotten the fix. But I gave it to dmm via a PM.

Code:
location ~ \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
fastcgi_intercept_errors on;
error_page 404 /error/404.php;
}

It works on my CentOS machine, should be the same in Fedora.

"I like to put random quotes, to make myself look clever."
- WiseMannnn
User Tools
Quote this message in a reply
04-26-2011, 03:12 AM
Post: #4
RE: fedora 14 nginx default setting error
Its not really a bug. Its just that they put their scripts in a different place.
User Tools
Quote this message in a reply
04-26-2011, 03:36 AM
Post: #5
RE: fedora 14 nginx default setting error
(04-26-2011 03:12 AM)f8ll Wrote:  Its not really a bug. Its just that they put their scripts in a different place.

Yeah, it isn't a bug.

"I like to put random quotes, to make myself look clever."
- WiseMannnn
User Tools
Quote this message in a reply
Post Reply 


Forum Jump:



User(s) browsing this thread:
1 Guest(s)