Welcome! Log In Create A New Profile

Advanced

Re: Incorrect $request_filename in 1.0.5?

August 28, 2011 01:50PM
On Sun, Aug 28, 2011 at 10:18:51AM -0400, Roger Smith wrote:
> Hi, thanks for the reply. Ok, so I've changed to /index.php, but
> $_SERVER['SCRIPT_FILENAME'] is now /var/www/testsite//index.php (double
> slash before index.php)
>
> while the nginx $request_filename is correct. Surely that isn't right?

You probably have the directive

fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;

It should be changed to

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Incorrect $request_filename in 1.0.5?

Roger Smith August 27, 2011 07:21PM

Re: Incorrect $request_filename in 1.0.5?

Ensiferous August 28, 2011 02:27AM

Re: Incorrect $request_filename in 1.0.5?

Roger Smith August 28, 2011 10:18AM

Re: Incorrect $request_filename in 1.0.5?

Igor Sysoev August 28, 2011 01:50PM

Re: Incorrect $request_filename in 1.0.5?

Roger Smith August 28, 2011 03:17PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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