turn off warning message on nginx

Reinis Rozitis r at roze.lv
Thu Feb 10 00:14:23 MSK 2011

>> 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.


More information about the nginx mailing list