Set php include_path from nginx

nginx, php

Solution

Now, it is possible to do this way:

fastcgi_param  PHP_VALUE  "include_path=/my/include/path";

More information here: http://bugs.php.net/bug.php?id=51595

Using this technique to set php values, I have successfully set different "error_log" locations for multiple virtual hosts.

Thanks, PHP and NginX guys!

Problem

Apache lets you set php.ini values for virtual hosts with the php_value directive. Does nginx have something similar? Is there another way to set the include_path on a per-site basis?

Original source