How to modify the responses returned by Apache. Problem Analysis: When the client is connected to the Apache Server, Apache generally returns information such as the Server version and non-default module, for example, Server: Apache1.3.26 (Unix) mod_perl1.26. problem analysis: when the client connects to the Apache server, Apache generally returns the server version, non-default module, and other information, such:
Server: Apache/1.3.26 (Unix) mod_perl/1.26.
Solution:
You can make the following settings in the Apache configuration file to minimize the server information it returns:
ServerTokens Prod
Note:
After this configuration, Apache will return certain server information, such:
Server: Apache
However, this does not affect server security too much, because many scanning software does not check the header information returned by your server when scanning. If you want to change the information returned by the server:
Server: It iS a nOnE-aPaCHe Server
Then you have to modify the source code.
Server: Apache/1.3.26 (Unix) mod_perl/1. 26...