Different FastCGI backend for /subdir: regex not matching

hugo nginx-forum at nginx.us
Thu Aug 11 13:00:16 UTC 2011


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?

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

More information about the nginx mailing list