Scaleable NGINX Configuration

Gena Makhomed gmm at csdoc.com
Wed Apr 1 22:48:11 UTC 2015


On 02.04.2015 0:12, Daniel Miller wrote:

> 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_root$fastcgi_script_name;
>    fastcgi_pass php;
> }
>
> 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?
>

Detailed answer on your question from Igor Sysoev, creator of nginx:

on English:
https://www.youtube.com/watch?v=YWRYbLKsS0I
Scaleable NGINX Configuration

on Russian:
https://events.yandex.ru/lib/talks/2392/
Масштабируемая конфигурация nginx

-- 
Best regards,
  Gena



More information about the nginx mailing list