Turn off the nginx version number and add server_tokens off in the http section of conf/nginx.conf;
Turn off the PHP version number, search expose_php in etc/php.ini and change it to Off(-- to determine whether to expose PHP installed on the server (for example, add its signature to the information header of the Web server: X-Powered-By: PHP /5.3.7)
Turn off the nginx version number and add server_tokens off in the http section of conf/nginx.conf;
Turn off the PHP version number, search expose_php in etc/php.ini and change it to Off(-- to determine whether to expose PHP installed on the server (for example, add its signature to the information header of the Web server: X-Powered-By: PHP /5.3.7)
Restart nginx php
keywords:
nginx hide header version php
http://www.andreaspollak.eu/2012/10/remove-php-x-powered-by-and-nginx-server-details-from-http-response-header/
http://blog.laimbock.com/2014/04/11/how-to-remove-nginx-php-versions-from-http-header/