What is the correct setting of Nginx's fastcgi_param SCRIPT_FILENAME? [duplicate]

Solution 1:

$request_filename is just a nicer way of writing it.

$request_filename

This variable is equal to path to the file for the current request, formed from directives root or alias and URI request;