Home >Backend Development >PHP Tutorial >How to modify the header information returned by Apache_PHP Tutorial

How to modify the header information returned by Apache_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:52:541111browse

Problem analysis: When the client connects to the Apache server, Apache will generally return server version, non-default module and other information, for example:
Server: Apache/1.3.26 (Unix) mod_perl/1.26
Solution:
You can make the following settings in Apache's configuration file to minimize the information it returns about the server:
ServerTokens Prod
Note:
After this setting, Apache will also return certain server information. , for example:
Server: Apache
But this will not have much impact on server security, because many scanning software ignores the header information returned by your server when scanning. If you want to change the relevant information returned by the server to:
Server: It iS a nOnE-aPaCHe Server
, then you have to modify the source code.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632459.htmlTechArticleProblem analysis: When the client connects to the Apache server, Apache will generally return the server version and non-default module and other information, for example: Server: Apache/1.3.26 (Unix) mod_perl/1.26...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn