Set a PHP parameter for only one location

B.R. reallfqq-nginx at
Thu Apr 2 08:39:15 UTC 2015

Do not be afraid of copy-pasting, those few kB on disk/in memory will
relieve you from pain during maintenance (and it is basically how you would
manage your configuration using templates).
*B. R.*

On Thu, Apr 2, 2015 at 1:28 AM, Francis Daly <francis at> wrote:

> On Wed, Apr 01, 2015 at 02:12:57PM -0700, Daniel Miller wrote:
> Hi there,
> > But...I want to set a php_value for a specific directory.  Is there
> > a more elegant method than duplicating all the directives for the
> > "global" php handler above for the directory?
> I think that "duplicating" is the elegant way.
> I suppose that you could put the four useful lines of your config into an
> external file, and "include" that in both your current and new locations.
> But I'd consider that "extra level of indirection" to be less elegant.
> (I can't think of any requests where your "fastcgi_split_path_info" or
> "fastcgi_index" directives will do anything useful.)
>         f
> --
> Francis Daly        francis at
> _______________________________________________
> nginx mailing list
> nginx at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list