-fastcgi_param SCRIPT_FILENAME /path/to/upper$fastcgi_script_name; +fastcgi_param SCRIPT_FILENAME /path/to$fastcgi_script_name; Posted at Nginx Forum: http://forum.nginx.org/read.php?21,94033,94068#msg-94068