Custom settings with PHP

locojohn nginx-forum at nginx.us
Tue Jan 20 13:54:39 UTC 2015


Hello Maxim,

Maxim Dounin Wrote:
-------------------------------------------------------

> As already replied in russian list, currently (going to be fixed) 
> this may be done only with a hack like
> 
>     geo $x {
>         default "${include_path}:/my/other/include/path";
>     }
> 
>     fastcgi_param PHP_VALUE $x;
> 
> which relies on the fact that geo module doesn't support 
> variables.

Has this been fixed in 1.7.x?  Eg can I now use PHP variables in the
fastcgi_param arguments, e.g. maybe with escaping character?

fastcgi_param PHP_ADMIN_VALUE "open_basedir=\${open_basedir}"; 

Andrejs

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



More information about the nginx mailing list