Disable Apache Web server signature How to turn off server signature on Apache Web server

Source: Internet
Author: User

Sometimes, we want to protect from the security point of view, to prevent malicious attacks by hackers. We will hide the server information, for example, generally we will find such as the following information.

I'm using CentOS (Fedora, rhel as well)

sudo

Other systems (Ubuntu, Debian)

sudo

We can add two lines of information to this file.

//隐藏Apache版本号信息ServerTokens Prod//第一条命令尽管不会在页面上直接显示。但在response的头部还会包括。所以加上此条。

And then restart the network

$ sudo service apache2 restart (DebianUbuntuorLinuxMint)$ sudo service httpd restart (CentOS/RHEL6)$ sudo systemctl restart httpd.service (FedoraCentOS/RHEL7ArchLinux

To resolve the problem.

See MORE:
Http://ask.xmodulo.com/turn-off-server-signature-apache-web-server.html

Shell script See:
http://write.blog.csdn.net/mdeditor#!postId=47006651

Disable Apache Web server signature How to turn off server signature on Apache Web server

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.