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

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注