How to set php ini settings from nginx for just one host -
one can set error_reporting
in nginx.conf
so:
fastcgi_param php_value error_reporting=e_all;
but if in 1 server block, affect others well? should change php settings in server blocks simultaneously?
you can set php_value
per server , affect server only. if need equal php_value
servers php, use include files.
for example (debian), create /etc/nginx/conf.d/php_settings.cnf
:
fastcgi_param php_value "upload_max_filesize=5m;\n error_reporting=e_all;";
then include file server or location config need:
server { ... location ~ \.php$ { ... include /etc/nginx/conf.d/php_settings.cnf; } ... }
Comments
Post a Comment