Welcome! Log In Create A New Profile

Advanced

Set a PHP parameter for only one location

April 01, 2015 05:14PM
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?

--
Daniel

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Set a PHP parameter for only one location

HeavyThumper April 01, 2015 05:14PM

Scaleable NGINX Configuration

Gena Makhomed April 01, 2015 06:50PM

Re: Set a PHP parameter for only one location

Francis Daly April 01, 2015 07:30PM

Re: Set a PHP parameter for only one location

B.R. April 02, 2015 04:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 222
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready