Welcome! Log In Create A New Profile

Advanced

Re: Yet another "No input file specified." thread

September 24, 2009 08:36PM
On Fri, Sep 25, 2009 at 00:21, Rob Schultz <rschultz7@gmail.com> wrote:
[...]

>>        location ~ \.php$ {
>>                fastcgi_pass   127.0.0.1:9000;
>>                fastcgi_index  index.php;
>>                include /etc/nginx/fastcgi_params;
>>        }

Try using something like:

location ~ \.(php|html)$ {
fastcgi_pass localhost:yourPort;
include fastcgi_params;
# add aditional parameters only after the include, so they'll override
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /path/to/your/docroot$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT /path/to/your/docroot;
fastcgi_intercept_errors on; # for easier debug
}

Mainly, the document_root param should be afer the include, otherwise
you're using your server's doc_root instead of your site's doc_root. I
think...

HTH

--
() ascii-rubanda kampajno - kontraŭ html-a retpoŝto
/\ ascii ribbon campaign - against html e-mail
Subject Author Posted

Yet another "No input file specified." thread

hobson42 September 24, 2009 06:52PM

Re: Yet another "No input file specified." thread

Rob Schultz September 24, 2009 07:28PM

Re: Yet another "No input file specified." thread

vesperto September 24, 2009 08:36PM

Re: Yet another "No input file specified." thread

Igor Sysoev September 25, 2009 03:52AM

Re: Yet another "No input file specified." thread

edogawaconan September 25, 2009 07:16AM

Re: Yet another "No input file specified." thread

hobson42 September 25, 2009 06:16AM

Re: Yet another "No input file specified." thread

dmikester1 October 19, 2010 01:53PM

Re: Yet another "No input file specified." thread

dmikester1 October 29, 2010 10:52AM

Re: Yet another "No input file specified." thread

Ian Hobson October 29, 2010 02:44PM

Re: Yet another "No input file specified." thread

dmikester1 October 29, 2010 05:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
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