turn off warning message on nginx
jerome at loyet.net
Thu Feb 10 00:18:03 MSK 2011
2011/2/9 Reinis Rozitis <r at roze.lv>:
>>> for instance in apache .htaccess if i add php_flag display_errors "0" it
>>> doesnt show me error message anymore
> While nginx doesnt provide such option you can accomplish it with PHP which
> has exactly such feature for Fastcgi sapi -
> In short starting with 5.3.0 php you can put a '.user.ini' file in directory
> containing 'display_errors=0' and it should work.
it means for each requests, every directory from / to the full path of
the script file, a check is done on the presence of .user.ini. This
kills performances and should be avoid in high loaded sites.
> nginx mailing list
> nginx at nginx.org
More information about the nginx