Re: Set a PHP parameter for only one location

2015-04-02 Thread B.R.
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). https://youtu.be/YWRYbLKsS0I --- *B. R.* On Thu, Apr 2, 2015 at 1:28 AM, Francis Daly wrote: > On Wed, Ap

Re: Set a PHP parameter for only one location

2015-04-01 Thread Francis Daly
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 ele

Set a PHP parameter for only one location

2015-04-01 Thread Daniel Miller
I have a "standard" location block for my php directives... # Pass all .php files onto a php-fpm/php-fcgi server. location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; include fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_r