NonRootWebPathApacheStyle

When installing FastCGI applications in non-root web path (for example, ), some of them expect (and find sufficient) couple fastcgi parameters to be present: PATH_INFO and SCRIPT_NAME, set in a similar way to how Apache sets them.

So, what in Apache looks like, in nginx can be done this way:

location ~ /thisapp(?/.*|$) { fastcgi_pass   unix:/path/to/thisappfcgi.sock; include /etc/nginx/fastcgi_params;

fastcgi_param  PATH_INFO   $path_info; fastcgi_param  SCRIPT_NAME "/thisapp"; }

It is known to work at least for Mercurial, Trac and Zope.