Hide Apache version number and other sensitive information

The first time you install apache general information apache version and other information are closed, some of the information targeted by hackers exposed apache invasion, in order to secure servers such information must be promptly closed, the configuration is as follows 1. Apache information hidden 1.1 the master configuration to enable httpd-default.conf
# vi /usr/local/apache2/conf/httpd.Conf
//找到httpd-default.conf,删除includes前面的“#”,改成如下
Include conf/extra/httpd-default.conf
1.2 modify httpd-default.conf file: /usr/local/apache2/conf/extra/httpd-default.conf found
ServerTokens Full
ServerSignature On
Change
ServerTokens Prod
ServerSignature off
2. Test before modification 2.1 screenshot [caption id = "attachment_3317" align = "alignnone" width = "476"] Apache information is not hidden [/ Caption] 2.2 hide after [caption id = "attachment_3319" align = "alignnone" width = "436"] Apache hide information [/ Caption]  3. end configuration, from very simple reprint please specify. Operation and maintenance lifetime : http: //www.ttlsa.com/html/3316.html

Reproduced in: https: //my.oschina.net/766/blog/211521

Guess you like

Origin blog.csdn.net/weixin_34203832/article/details/91546002