日度归档:2017年11月18日

nginx和php版本号隐藏

Nginx版本隐藏

Syntax: server_tokens on | off | build | string;
Default:
server_tokens on;
Context: httpserverlocation

PHP版本隐藏

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://php.net/expose-php
expose_php = Off