Home > Operation and Maintenance > Apache > How to hide apache version number

How to hide apache version number

王林
Release: 2020-03-21 18:04:22
forward
4201 people have browsed it

How to hide apache version number

We know that by default, Apache will display the version number and operating system version, and even display what kind of Apache modules are installed on the server. This is very unsafe.

So how do we hide the apache version number?

You only need to modify the ServerSignature parameter in the apache2 configuration file.

(Recommended tutorial: apache tutorial)

The specific method is as follows:

New version of apache2 related configuration files

/etc/apache2/conf-enabled
#被使用文件的软连接

sudo vim security.conf 
#找到 ServerSignature
#将后面的参数设置为
ServerSignature Off
#然后找到ServerTokens
#修改为
ServerTokens Prod
Copy after login

Just restart apache2.

The above is the detailed content of How to hide apache version number. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template