Different FastCGI backend for /subdir: regex not matching

hugo nginx-forum at nginx.us
Thu Aug 11 13:02:49 UTC 2011


hugo Wrote:
-------------------------------------------------------
> Hello,
> 
> Thanks for the reply. I'm getting somewhere now.
> Clearly a review of the documentation regarding
> location is in order for me.
> 
> I'm stumped by something else now;
> 
> The fastcgi server returns a 404 for
> /subdir/target.php, because
> $fastcgi_script_filename includes /subdir, and the
> path ends up as
> /var/www/othervhost/public_html/subdir/target.php;
> however target.php lives in the root folder,
> below.
> 
> Short of using ../, what is the recommended
> solution?

Actually ../ will lead nowhere, please disregard that.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213682,213696#msg-213696



More information about the nginx mailing list