Locate php.ini and turn the following directive to off
expose_php = Off
You can limit the information that nginx presents by creating/editing the following directive in nginx.conf. Find the http section, which defines configurations for the HttpCoreModule. Uncomment (remove the # symbol) or add the following directive:
This will configure nginx to not send any version numbers in the HTTP header.